mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 17:21:34 +00:00
Move protocols_handler to the root (#643)
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
use crate::{IdentifySender, IdentifyProtocolConfig};
|
||||
use futures::prelude::*;
|
||||
use libp2p_core::{
|
||||
nodes::protocols_handler::{ProtocolsHandler, ProtocolsHandlerEvent},
|
||||
protocols_handler::{ProtocolsHandler, ProtocolsHandlerEvent},
|
||||
upgrade::{DeniedUpgrade, InboundUpgrade}
|
||||
};
|
||||
use smallvec::SmallVec;
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
use futures::prelude::*;
|
||||
use libp2p_core::nodes::{ConnectedPoint, NetworkBehavior, NetworkBehaviorAction};
|
||||
use libp2p_core::{nodes::protocols_handler::ProtocolsHandler, Multiaddr, PeerId};
|
||||
use libp2p_core::{protocols_handler::ProtocolsHandler, Multiaddr, PeerId};
|
||||
use smallvec::SmallVec;
|
||||
use std::{collections::HashMap, io, marker::PhantomData};
|
||||
use tokio_io::{AsyncRead, AsyncWrite};
|
||||
|
@ -21,7 +21,7 @@
|
||||
use crate::{RemoteInfo, IdentifyProtocolConfig};
|
||||
use futures::prelude::*;
|
||||
use libp2p_core::{
|
||||
nodes::protocols_handler::{ProtocolsHandler, ProtocolsHandlerEvent},
|
||||
protocols_handler::{ProtocolsHandler, ProtocolsHandlerEvent},
|
||||
upgrade::{self, DeniedUpgrade, OutboundUpgrade, Toggleable}
|
||||
};
|
||||
use std::{io, marker::PhantomData, time::{Duration, Instant}};
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
use futures::prelude::*;
|
||||
use libp2p_core::nodes::{ConnectedPoint, NetworkBehavior, NetworkBehaviorAction};
|
||||
use libp2p_core::{nodes::protocols_handler::ProtocolsHandler, Multiaddr, PeerId};
|
||||
use libp2p_core::{protocols_handler::ProtocolsHandler, Multiaddr, PeerId};
|
||||
use std::{collections::VecDeque, marker::PhantomData};
|
||||
use tokio_io::{AsyncRead, AsyncWrite};
|
||||
use {IdentifyInfo, PeriodicIdentification, PeriodicIdentificationEvent};
|
||||
|
Reference in New Issue
Block a user