From 2498e90742594cbdacae6a5d51b302a2f96220b3 Mon Sep 17 00:00:00 2001 From: Georgy Moshkin <gmoshkin@picodata.io> Date: Tue, 18 Oct 2022 08:46:44 +0300 Subject: [PATCH] chore: fix dead code warnings --- src/traft/network.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/traft/network.rs b/src/traft/network.rs index 32e97a7410..3a53b62573 100644 --- a/src/traft/network.rs +++ b/src/traft/network.rs @@ -48,7 +48,6 @@ impl Default for WorkerOptions { // PoolWorker //////////////////////////////////////////////////////////////////////////////// -type Notify = fiber::Channel<Result<RawByteBuf, TntError>>; type Callback = Box<dyn FnOnce(Result<RawByteBuf, TntError>)>; type Queue = Mailbox<(Callback, &'static str, TupleBuffer)>; @@ -432,6 +431,7 @@ impl ConnectionPool { /// to re-send it later. /// /// **This function yields.** + #[allow(dead_code)] pub fn call_and_wait_timeout<R>( &mut self, id: &impl PeerId, @@ -453,6 +453,7 @@ impl ConnectionPool { /// to re-send it later. /// /// **This function yields.** + #[allow(dead_code)] #[inline(always)] pub fn call_and_wait<R>(&mut self, id: &impl PeerId, req: R) -> Result<R::Response, Error> where -- GitLab