mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 01:01:34 +00:00
Move swarm and protocols handler into swarm crate. (#1188)
Move swarm and protocols handler into swarm crate.
This commit is contained in:
@ -25,7 +25,7 @@ use super::*;
|
||||
use crate::kbucket::Distance;
|
||||
use futures::future;
|
||||
use libp2p_core::{
|
||||
Swarm,
|
||||
PeerId,
|
||||
Transport,
|
||||
identity,
|
||||
transport::{MemoryTransport, boxed::Boxed},
|
||||
@ -35,6 +35,7 @@ use libp2p_core::{
|
||||
upgrade,
|
||||
};
|
||||
use libp2p_secio::SecioConfig;
|
||||
use libp2p_swarm::Swarm;
|
||||
use libp2p_yamux as yamux;
|
||||
use rand::{Rng, random, thread_rng};
|
||||
use std::{collections::HashSet, iter::FromIterator, io, num::NonZeroU8, u64};
|
||||
|
Reference in New Issue
Block a user