(ctx context.Context, requestID string, snap []byte, routeReason, backend *string)
| 468 | } |
| 469 | |
| 470 | func (s *Server) updateLedgerPolicy(ctx context.Context, requestID string, snap []byte, routeReason, backend *string) { |
| 471 | if s.ledger == nil { |
| 472 | return |
| 473 | } |
| 474 | _ = s.ledger.UpdateRequest(ctx, requestID, requests.RequestPatch{ |
| 475 | PolicySnapshot: snap, |
| 476 | RouteReason: routeReason, |
| 477 | SelectedBackend: backend, |
| 478 | UpdatedAt: time.Now(), |
| 479 | }) |
| 480 | } |
| 481 | |
| 482 | func (s *Server) markLedgerSuccess(ctx context.Context, requestID, backend, routeReason string) { |
| 483 | if s.ledger == nil { |
no test coverage detected