From a2bc6110ce69ea5f0dd5e6d0dab720e622c06deb Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 2 Jul 2025 14:43:24 -0600 Subject: fix: report serving status from health check endpoint --- src/authorization/server.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/authorization/server.rs') 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> { - 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()))); -- cgit v1.2.3