mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-14 02:21:21 +00:00
core/muxing: Remove the StreamMuxer::flush_all
function (#2669)
`libp2p-core` provides the `StreamMuxer` abstraction so it can provide functionality that abstracts over this trait. We never use the `flush_all` function as part of our abstractions. No one else is going to use it so we can remove it from the abstraction.
This commit is contained in:
@ -352,13 +352,6 @@ where
|
||||
EitherOutput::Second(inner) => inner.poll_close(cx).map_err(|e| e.into()),
|
||||
}
|
||||
}
|
||||
|
||||
fn flush_all(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
match self {
|
||||
EitherOutput::First(inner) => inner.flush_all(cx).map_err(|e| e.into()),
|
||||
EitherOutput::Second(inner) => inner.flush_all(cx).map_err(|e| e.into()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
|
Reference in New Issue
Block a user