From b5fe7e0746c663d963b06c5a2e8dbb173113d41c Mon Sep 17 00:00:00 2001 From: kvwu Date: Mon, 12 Apr 2021 12:36:51 -0700 Subject: [PATCH] health: expose client for (#471) --- tonic-health/build.rs | 2 +- tonic-health/src/lib.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tonic-health/build.rs b/tonic-health/build.rs index 350e1dd3f..602ed9c81 100644 --- a/tonic-health/build.rs +++ b/tonic-health/build.rs @@ -1,7 +1,7 @@ fn main() -> Result<(), Box> { tonic_build::configure() .build_server(true) - .build_client(false) + .build_client(true) .format(false) .compile(&["proto/health.proto"], &["proto/"])?; diff --git a/tonic-health/src/lib.rs b/tonic-health/src/lib.rs index 8ecc60e6d..52e6b72b8 100644 --- a/tonic-health/src/lib.rs +++ b/tonic-health/src/lib.rs @@ -22,7 +22,8 @@ use std::fmt::{Display, Formatter}; -mod proto { +/// These are the generated types from our health check proto file. +pub mod proto { #![allow(unreachable_pub)] tonic::include_proto!("grpc.health.v1"); }