From cc1d61c401e52ba3b6cd264c5400fb7ab52522dc Mon Sep 17 00:00:00 2001 From: hozan23 Date: Wed, 22 May 2024 18:23:14 +0200 Subject: p2p: add enable_monitor field to Config --- p2p/src/backend.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p2p/src/backend.rs') diff --git a/p2p/src/backend.rs b/p2p/src/backend.rs index c05a693..0db1cee 100644 --- a/p2p/src/backend.rs +++ b/p2p/src/backend.rs @@ -39,7 +39,7 @@ impl Backend { /// Creates a new Backend. pub fn new(key_pair: &KeyPair, config: Config, ex: Executor) -> ArcBackend { let config = Arc::new(config); - let monitor = Arc::new(Monitor::new()); + let monitor = Arc::new(Monitor::new(config.clone())); let conn_queue = ConnQueue::new(); let peer_id = PeerID::try_from(key_pair.public()) -- cgit v1.2.3