From 3998b80d8f9fe486fa02a82d5ec3ac7b064a7c5c Mon Sep 17 00:00:00 2001 From: draoi Date: Tue, 9 Apr 2024 15:24:12 +0200 Subject: [PATCH] p2p: delete unused peer_discovery_running variable --- src/net/p2p.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/net/p2p.rs b/src/net/p2p.rs index dd77d0de7..f1d593caf 100644 --- a/src/net/p2p.rs +++ b/src/net/p2p.rs @@ -60,9 +60,6 @@ pub struct P2p { protocol_registry: ProtocolRegistry, /// P2P network settings settings: SettingsPtr, - /// Boolean lock marking if peer discovery is active - pub peer_discovery_running: Mutex, - /// Reference to configured [`ManualSession`] session_manual: ManualSessionPtr, /// Reference to configured [`InboundSession`] @@ -95,8 +92,6 @@ impl P2p { hosts: Hosts::new(settings.clone()), protocol_registry: ProtocolRegistry::new(), settings, - peer_discovery_running: Mutex::new(false), - session_manual: ManualSession::new(), session_inbound: InboundSession::new(), session_outbound: OutboundSession::new(),