From 058ced3f1bdd2ada3754a7e2c34449edb3f1e876 Mon Sep 17 00:00:00 2001 From: Rafael RL Date: Thu, 6 Mar 2025 09:30:52 +0100 Subject: [PATCH] chore(tonic-bench): Fix failing bench --- tonic/Cargo.toml | 2 +- tonic/benches/decode.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tonic/Cargo.toml b/tonic/Cargo.toml index eee2c3f73..3dab7e3e8 100644 --- a/tonic/Cargo.toml +++ b/tonic/Cargo.toml @@ -104,7 +104,7 @@ quickcheck = "1.0" quickcheck_macros = "1.0" rand = "0.8" static_assertions = "1.0" -tokio = {version = "1.0", features = ["rt", "macros"]} +tokio = {version = "1.0", features = ["rt-multi-thread", "macros"]} tower = {version = "0.5", features = ["full"]} [lints] 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 {