diff options
Diffstat (limited to 'p2p/src/discovery')
-rw-r--r-- | p2p/src/discovery/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/p2p/src/discovery/mod.rs b/p2p/src/discovery/mod.rs index 99f880d..dae4d3f 100644 --- a/p2p/src/discovery/mod.rs +++ b/p2p/src/discovery/mod.rs @@ -32,8 +32,6 @@ use crate::{ use lookup::LookupService; use refresh::RefreshService; -pub type ArcDiscovery = Arc<Discovery>; - pub struct Discovery { /// Routing table table: Arc<RoutingTable>, @@ -69,7 +67,7 @@ impl Discovery { config: Arc<Config>, monitor: Arc<Monitor>, ex: Executor, - ) -> ArcDiscovery { + ) -> Arc<Discovery> { let table = Arc::new(RoutingTable::new(peer_id.0)); let refresh_service = Arc::new(RefreshService::new( |