diff --git a/tonic/Cargo.toml b/tonic/Cargo.toml index 95f929333..5a66e66ad 100644 --- a/tonic/Cargo.toml +++ b/tonic/Cargo.toml @@ -100,8 +100,8 @@ bencher = "0.1.5" quickcheck = "1.0" quickcheck_macros = "1.0" static_assertions = "1.0" -tokio = {version = "1.0", features = ["rt", "macros"]} -tower = {version = "0.5", features = ["load-shed", "timeout"]} +tokio = {version = "1.0", features = ["rt-multi-thread", "macros"]} +tower = {version = "0.5", features = ["full"]} [lints] workspace = true diff --git a/tonic/benches/decode.rs b/tonic/benches/decode.rs index a6a6e58a9..5ba4dfccc 100644 --- a/tonic/benches/decode.rs +++ b/tonic/benches/decode.rs @@ -73,7 +73,7 @@ impl Body for MockBody { } fn is_end_stream(&self) -> bool { - !self.data.is_empty() + self.data.is_empty() } fn size_hint(&self) -> SizeHint {