Skip to content
Snippets Groups Projects
Commit 2498e907 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon: Committed by Yaroslav Dynnikov
Browse files

chore: fix dead code warnings

parent 909854bb
No related branches found
No related tags found
1 merge request!283chore: fix dead code warnings
Pipeline #12641 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment