summaryrefslogtreecommitdiff
path: root/src/authorization
diff options
context:
space:
mode:
Diffstat (limited to 'src/authorization')
-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())));