MCPcopy Index your code
hub / github.com/InferCore/InferCore / updateLedgerFailed

Method updateLedgerFailed

internal/server/server.go:459–468  ·  view source on GitHub ↗
(ctx context.Context, requestID string)

Source from the content-addressed store, hash-verified

457}
458
459func (s *Server) updateLedgerFailed(ctx context.Context, requestID string) {
460 if s.ledger == nil {
461 return
462 }
463 st := "failed"
464 _ = s.ledger.UpdateRequest(ctx, requestID, requests.RequestPatch{
465 Status: &st,
466 UpdatedAt: time.Now(),
467 })
468}
469
470func (s *Server) updateLedgerPolicy(ctx context.Context, requestID string, snap []byte, routeReason, backend *string) {
471 if s.ledger == nil {

Callers 1

FailMethod · 0.80

Calls 1

UpdateRequestMethod · 0.65

Tested by

no test coverage detected