mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 06:41:34 +00:00
Update if-watch requirement from 0.1.8 to 0.2.0 (#1979)
* Update if-watch requirement from 0.1.8 to 0.2.0 Updates the requirements on [if-watch](https://github.com/dvc94ch/if-watch) to permit the latest version. - [Release notes](https://github.com/dvc94ch/if-watch/releases) - [Commits](https://github.com/dvc94ch/if-watch/commits) Signed-off-by: dependabot[bot] <support@github.com> * Update libp2p-tcp. * Update libp2p-tcp version and changelog. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Roman S. Borschel <roman@parity.io> Co-authored-by: Roman Borschel <romanb@users.noreply.github.com>
This commit is contained in:
@ -23,7 +23,6 @@ use super::{Provider, IfEvent, Incoming};
|
||||
use async_io_crate::Async;
|
||||
use futures::{
|
||||
future::{BoxFuture, FutureExt},
|
||||
prelude::*,
|
||||
};
|
||||
use std::io;
|
||||
use std::task::{Poll, Context};
|
||||
@ -75,9 +74,9 @@ impl Provider for Tcp {
|
||||
}
|
||||
|
||||
fn poll_interfaces(w: &mut Self::IfWatcher, cx: &mut Context<'_>) -> Poll<io::Result<IfEvent>> {
|
||||
w.next().map_ok(|e| match e {
|
||||
w.poll_unpin(cx).map_ok(|e| match e {
|
||||
if_watch::IfEvent::Up(a) => IfEvent::Up(a),
|
||||
if_watch::IfEvent::Down(a) => IfEvent::Down(a),
|
||||
}).boxed().poll_unpin(cx)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user