From 921b396085653bef019b380b497285d44e39c187 Mon Sep 17 00:00:00 2001 From: Ashish Singh Date: Wed, 10 Aug 2022 18:12:00 +0530 Subject: [PATCH] removed redundant code --- src/shutdown.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/shutdown.rs b/src/shutdown.rs index bf1b1c3..2c5a022 100644 --- a/src/shutdown.rs +++ b/src/shutdown.rs @@ -34,12 +34,6 @@ impl Shutdown { /// Receive the shutdown notice, waiting if necessary. pub(crate) async fn recv(&mut self) { - // If the shutdown signal has already been received, then return - // immediately. - if self.shutdown { - return; - } - // Cannot receive a "lag error" as only one value is ever sent. let _ = self.notify.recv().await;