mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-29 10:41:21 +00:00
Update protocols/noise/src/io.rs
Co-Authored-By: Toralf Wittner <tw@dtex.org>
This commit is contained in:
parent
3f1cbaa3a8
commit
d0032702f4
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user