Convenience alias of [`readyz`] for monitors that probe `/health`.
(State(state): State<Arc<HealthRouterState>>)
| 89 | |
| 90 | /// Convenience alias of [`readyz`] for monitors that probe `/health`. |
| 91 | async fn health(State(state): State<Arc<HealthRouterState>>) -> impl IntoResponse { |
| 92 | render_response(&state.health.borrow()) |
| 93 | } |
| 94 | |
| 95 | fn render_response(state: &HealthState) -> (StatusCode, Json<HealthResponse>) { |
| 96 | let database = render_database(state); |
nothing calls this directly
no test coverage detected