mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-29 01:31:33 +00:00
Map AsyncWrite::shutdown
to Sink::close
. (#505)
This commit is contained in:
@ -157,7 +157,7 @@ where
|
||||
{
|
||||
#[inline]
|
||||
fn shutdown(&mut self) -> Poll<(), IoError> {
|
||||
self.inner.poll_complete()
|
||||
self.inner.close()
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user