Method
updateLedgerFailed
(ctx context.Context, requestID string)
Source from the content-addressed store, hash-verified
| 457 | } |
| 458 | |
| 459 | func (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 | |
| 470 | func (s *Server) updateLedgerPolicy(ctx context.Context, requestID string, snap []byte, routeReason, backend *string) { |
| 471 | if s.ledger == nil { |
Tested by
no test coverage detected