mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-22 14:21:33 +00:00
Fix warning in mplex (#1000)
This commit is contained in:
@ -495,7 +495,7 @@ where C: AsyncRead + AsyncWrite
|
||||
// just read and wait for the next iteration.
|
||||
match next_data_poll? {
|
||||
Async::Ready(Some(data)) => substream.current_data = data,
|
||||
Async::Ready(None) | Async::Ready(None) => {
|
||||
Async::Ready(None) => {
|
||||
substream.remote_open = false;
|
||||
return Ok(Async::Ready(0));
|
||||
},
|
||||
|
Reference in New Issue
Block a user