diff --git a/tonic-health/Cargo.toml b/tonic-health/Cargo.toml index 8a4298e10..ab4ed6219 100644 --- a/tonic-health/Cargo.toml +++ b/tonic-health/Cargo.toml @@ -14,10 +14,6 @@ readme = "README.md" repository = "https://github.com/hyperium/tonic" version = "0.13.0" -[features] -default = ["transport"] -transport = [] - [dependencies] prost = "0.13" tokio = {version = "1.0", features = ["sync"]} diff --git a/tonic-health/src/server.rs b/tonic-health/src/server.rs index 33bc74b0b..7cae885ff 100644 --- a/tonic-health/src/server.rs +++ b/tonic-health/src/server.rs @@ -8,9 +8,7 @@ use std::fmt; use std::sync::Arc; use tokio::sync::{watch, RwLock}; use tokio_stream::Stream; -#[cfg(feature = "transport")] -use tonic::server::NamedService; -use tonic::{Request, Response, Status}; +use tonic::{server::NamedService, Request, Response, Status}; /// Creates a `HealthReporter` and a linked `HealthServer` pair. Together, /// these types can be used to serve the gRPC Health Checking service. @@ -50,7 +48,6 @@ impl HealthReporter { /// Sets the status of the service implemented by `S` to `Serving`. This notifies any watchers /// if there is a change in status. - #[cfg(feature = "transport")] pub async fn set_serving(&mut self) where S: NamedService, @@ -62,7 +59,6 @@ impl HealthReporter { /// Sets the status of the service implemented by `S` to `NotServing`. This notifies any watchers /// if there is a change in status. - #[cfg(feature = "transport")] pub async fn set_not_serving(&mut self) where S: NamedService,