summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-02 14:43:24 -0600
committermo khan <mo@mokhan.ca>2025-07-02 14:43:24 -0600
commita2bc6110ce69ea5f0dd5e6d0dab720e622c06deb (patch)
treecaeddf7f9990c9ab6e6417e3010536f414c70316 /src
parent585a46473fa2180b69bfe0401e061bfb6e934fde (diff)
fix: report serving status from health check endpoint
Diffstat (limited to 'src')
-rw-r--r--src/authorization/server.rs3
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())));