aboutsummaryrefslogtreecommitdiff
path: root/p2p/src/discovery
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-06-27 03:52:18 +0200
committerhozan23 <hozan23@karyontech.net>2024-06-27 23:32:10 +0200
commitbcc6721257889f85f57af1b40351540585ffd41d (patch)
tree915adea7454fa91eafadfd9e7f9834a7cd0d9ebc /p2p/src/discovery
parent7e4e25d9fbac403b0d46e8081baf00fb3865d56d (diff)
Remove redundant type aliases
Diffstat (limited to 'p2p/src/discovery')
-rw-r--r--p2p/src/discovery/mod.rs4
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(