diff options
Diffstat (limited to 'tvix/store')
-rw-r--r-- | tvix/store/Cargo.toml | 1 | ||||
-rw-r--r-- | tvix/store/src/bin/tvix-store.rs | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tvix/store/Cargo.toml b/tvix/store/Cargo.toml index e70ed0e39674..964fc9be2e1a 100644 --- a/tvix/store/Cargo.toml +++ b/tvix/store/Cargo.toml @@ -44,6 +44,7 @@ tracing = "0.1.40" tracing-indicatif = "0.3.6" hyper-util = "0.1.6" toml = { version = "0.8.15", optional = true } +tonic-health = { version = "0.12.1", default-features = false } [dependencies.tonic-reflection] optional = true diff --git a/tvix/store/src/bin/tvix-store.rs b/tvix/store/src/bin/tvix-store.rs index 5401f67b3f7e..37e1672c79df 100644 --- a/tvix/store/src/bin/tvix-store.rs +++ b/tvix/store/src/bin/tvix-store.rs @@ -178,8 +178,11 @@ async fn run_cli(cli: Cli) -> Result<(), Box<dyn std::error::Error + Send + Sync .map_request(tvix_tracing::propagate::tonic::accept_trace), ); + let (_health_reporter, health_service) = tonic_health::server::health_reporter(); + #[allow(unused_mut)] let mut router = server + .add_service(health_service) .add_service(BlobServiceServer::new(GRPCBlobServiceWrapper::new( blob_service, ))) |