From 44e8cce9c8a3c6ddaed994983b394624a78f9d36 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 20 Sep 2023 12:34:51 -0700 Subject: [PATCH] no need for this yield. recv is cooperative --- Cargo.lock | 2 +- deduped_broadcast/Cargo.toml | 2 +- deduped_broadcast/src/lib.rs | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a88704a3..7c0d7bb3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1285,7 +1285,7 @@ dependencies = [ [[package]] name = "deduped_broadcast" -version = "0.2.1" +version = "0.2.2" dependencies = [ "lru", "serde", diff --git a/deduped_broadcast/Cargo.toml b/deduped_broadcast/Cargo.toml index 7d7dc918..ad9d4be2 100644 --- a/deduped_broadcast/Cargo.toml +++ b/deduped_broadcast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "deduped_broadcast" -version = "0.2.1" +version = "0.2.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/deduped_broadcast/src/lib.rs b/deduped_broadcast/src/lib.rs index 1ff058ba..4dc25d80 100644 --- a/deduped_broadcast/src/lib.rs +++ b/deduped_broadcast/src/lib.rs @@ -59,8 +59,6 @@ where self.total_broadcasts.fetch_add(x, Ordering::Relaxed); } }); - - yield_now().await; } } }