diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-02 14:43:24 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-02 14:43:24 -0600 |
| commit | a2bc6110ce69ea5f0dd5e6d0dab720e622c06deb (patch) | |
| tree | caeddf7f9990c9ab6e6417e3010536f414c70316 /src/authorization/server.rs | |
| parent | 585a46473fa2180b69bfe0401e061bfb6e934fde (diff) | |
fix: report serving status from health check endpoint
Diffstat (limited to 'src/authorization/server.rs')
| -rw-r--r-- | src/authorization/server.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/authorization/server.rs b/src/authorization/server.rs index 309d751e..54227968 100644 --- a/src/authorization/server.rs +++ b/src/authorization/server.rs @@ -9,7 +9,8 @@ pub struct Server { impl Server { pub fn new() -> Result<Server, Box<dyn std::error::Error>> { - let (_health_reporter, health_service) = tonic_health::server::health_reporter(); + let (health_reporter, health_service) = tonic_health::server::health_reporter(); + let _ = health_reporter.set_service_status("", tonic_health::ServingStatus::Serving); let authorization_service = AuthorizationServer::new(CheckService::new(Arc::new(CedarAuthorizer::default()))); |
