Kubernetes readiness probe — reflects the cached background DB state.
(State(state): State<Arc<HealthRouterState>>)
| 84 | |
| 85 | /// Kubernetes readiness probe — reflects the cached background DB state. |
| 86 | async fn readyz(State(state): State<Arc<HealthRouterState>>) -> impl IntoResponse { |
| 87 | render_response(&state.health.borrow()) |
| 88 | } |
| 89 | |
| 90 | /// Convenience alias of [`readyz`] for monitors that probe `/health`. |
| 91 | async fn health(State(state): State<Arc<HealthRouterState>>) -> impl IntoResponse { |
nothing calls this directly
no test coverage detected