mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-13 18:11:22 +00:00
Update protocols/noise/src/io.rs
Co-Authored-By: Toralf Wittner <tw@dtex.org>
This commit is contained in:
@ -424,7 +424,7 @@ impl<T: AsyncWrite + Unpin> AsyncWrite for NoiseOutput<T> {
|
|||||||
mut self: Pin<&mut Self>,
|
mut self: Pin<&mut Self>,
|
||||||
cx: &mut Context<'_>,
|
cx: &mut Context<'_>,
|
||||||
) -> Poll<Result<(), std::io::Error>>{
|
) -> Poll<Result<(), std::io::Error>>{
|
||||||
ready!(Pin::new(&mut *self).poll_flush(cx))?;
|
ready!(self.as_mut().poll_flush(cx))?;
|
||||||
Pin::new(&mut self.io).poll_close(cx)
|
Pin::new(&mut self.io).poll_close(cx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user