diff options
author | Yureka <tvl@yuka.dev> | 2024-07-22T13·41+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-07-22T15·57+0000 |
commit | 2547ff2cf6c6e8fefa6f55e3583bea1b1d8f4263 (patch) | |
tree | dfba0f40f8bdc91136b9dd9840b6872d9dca2219 /tvix/store/src | |
parent | 39c8b6dece1ca414f4ce8dde49e9828e34319664 (diff) |
feat(tvix/store): add grpc healthcheck service to daemon r/8403
Change-Id: Ib95fc9352a45d54f9a16c8841c7e8f7cbeeaee8c Reviewed-on: https://cl.tvl.fyi/c/depot/+/12019 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Autosubmit: yuka <yuka@yuka.dev>
Diffstat (limited to 'tvix/store/src')
-rw-r--r-- | tvix/store/src/bin/tvix-store.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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, ))) |