mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-06 16:12: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.
|
// just read and wait for the next iteration.
|
||||||
match next_data_poll? {
|
match next_data_poll? {
|
||||||
Async::Ready(Some(data)) => substream.current_data = data,
|
Async::Ready(Some(data)) => substream.current_data = data,
|
||||||
Async::Ready(None) | Async::Ready(None) => {
|
Async::Ready(None) => {
|
||||||
substream.remote_open = false;
|
substream.remote_open = false;
|
||||||
return Ok(Async::Ready(0));
|
return Ok(Async::Ready(0));
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user