Skip to content

Commit

Permalink
health: expose client for (hyperium#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvwu committed Apr 12, 2021
1 parent 1d2754f commit b5fe7e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tonic-health/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(true)
.build_client(false)
.build_client(true)
.format(false)
.compile(&["proto/health.proto"], &["proto/"])?;

Expand Down
3 changes: 2 additions & 1 deletion tonic-health/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit b5fe7e0

Please sign in to comment.