mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-06 08:02:18 +00:00
Fix warning in mplex (#1000)
This commit is contained in:
parent
1820bcb5ef
commit
bbe0bd3377
@ -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));
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user