mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-04 04:01:33 +00:00
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:
committed by
Pierre Krieger
parent
cb74580e35
commit
f85241dd36
@ -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]
|
||||
|
Reference in New Issue
Block a user