From bcc6721257889f85f57af1b40351540585ffd41d Mon Sep 17 00:00:00 2001 From: hozan23 Date: Thu, 27 Jun 2024 03:52:18 +0200 Subject: Remove redundant type aliases --- p2p/src/discovery/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'p2p/src/discovery/mod.rs') 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; - pub struct Discovery { /// Routing table table: Arc, @@ -69,7 +67,7 @@ impl Discovery { config: Arc, monitor: Arc, ex: Executor, - ) -> ArcDiscovery { + ) -> Arc { let table = Arc::new(RoutingTable::new(peer_id.0)); let refresh_service = Arc::new(RefreshService::new( -- cgit v1.2.3