Update core, tcp, secio and mplex to futures-0.3. (#1302)

* Update `rw-stream-sink` to futures-0.3.

* Update core, tcp, secio and mplex to futures-0.3.

On top of https://github.com/libp2p/rust-libp2p/pull/1301
This commit is contained in:
Toralf Wittner
2019-11-14 13:42:14 +01:00
committed by Pierre Krieger
parent cb74580e35
commit f85241dd36
11 changed files with 155 additions and 139 deletions

View File

@ -37,10 +37,7 @@
//! documentation of `swarm` and of libp2p in general to learn how to use the `Transport` trait.
use async_std::net::TcpStream;
use futures::{
future::{self, Ready},
prelude::*,
};
use futures::{future::{self, Ready}, prelude::*};
use futures_timer::Delay;
use get_if_addrs::{IfAddr, get_if_addrs};
use ipnet::{IpNet, Ipv4Net, Ipv6Net};
@ -449,7 +446,7 @@ impl Drop for TcpTransStream {
mod tests {
use futures::prelude::*;
use libp2p_core::{Transport, multiaddr::{Multiaddr, Protocol}, transport::ListenerEvent};
use std::{net::{IpAddr, Ipv4Addr, SocketAddr}, time::Duration};
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use super::{multiaddr_to_socketaddr, TcpConfig};
#[test]