aboutsummaryrefslogtreecommitdiff
path: root/p2p/src/discovery
diff options
context:
space:
mode:
authorhozan23 <hozan23@proton.me>2023-11-12 11:26:38 +0300
committerhozan23 <hozan23@proton.me>2023-11-12 11:26:38 +0300
commit5d91ead06c62fd7c3cd846659b935012616ce5ae (patch)
treefc6413ba9e486f786a44c82740ae3230c0384afe /p2p/src/discovery
parent24364ab8b4acf48f19d72c1b6d06c20478635eaf (diff)
p2p: remove net directory
Diffstat (limited to 'p2p/src/discovery')
-rw-r--r--p2p/src/discovery/lookup.rs4
-rw-r--r--p2p/src/discovery/mod.rs6
2 files changed, 7 insertions, 3 deletions
diff --git a/p2p/src/discovery/lookup.rs b/p2p/src/discovery/lookup.rs
index f404133..94da900 100644
--- a/p2p/src/discovery/lookup.rs
+++ b/p2p/src/discovery/lookup.rs
@@ -10,14 +10,16 @@ use karyons_core::{async_utils::timeout, utils::decode, Executor};
use karyons_net::{Conn, Endpoint};
use crate::{
+ connector::Connector,
io_codec::IOCodec,
+ listener::Listener,
message::{
get_msg_payload, FindPeerMsg, NetMsg, NetMsgCmd, PeerMsg, PeersMsg, PingMsg, PongMsg,
ShutdownMsg,
},
monitor::{ConnEvent, DiscoveryEvent, Monitor},
- net::{ConnectionSlots, Connector, Listener},
routing_table::RoutingTable,
+ slots::ConnectionSlots,
utils::version_match,
Config, Error, PeerID, Result,
};
diff --git a/p2p/src/discovery/mod.rs b/p2p/src/discovery/mod.rs
index 94b350b..7b8e7dc 100644
--- a/p2p/src/discovery/mod.rs
+++ b/p2p/src/discovery/mod.rs
@@ -16,13 +16,15 @@ use karyons_net::{Conn, Endpoint};
use crate::{
config::Config,
+ connection::{ConnDirection, ConnQueue},
+ connector::Connector,
+ listener::Listener,
monitor::Monitor,
- net::ConnQueue,
- net::{ConnDirection, ConnectionSlots, Connector, Listener},
routing_table::{
Entry, EntryStatusFlag, RoutingTable, CONNECTED_ENTRY, DISCONNECTED_ENTRY, PENDING_ENTRY,
UNREACHABLE_ENTRY, UNSTABLE_ENTRY,
},
+ slots::ConnectionSlots,
Error, PeerID, Result,
};