diff options
author | hozan23 <hozan23@karyontech.net> | 2024-05-23 13:27:43 +0200 |
---|---|---|
committer | hozan23 <hozan23@karyontech.net> | 2024-05-23 13:27:43 +0200 |
commit | 681cfce4f412958dbb6dc8a1c07408826b4387a0 (patch) | |
tree | 9278976be1c59ce47f1833276007f5b45e99c2de /p2p/src/monitor.rs | |
parent | d51f212628f4996d754745b4904a1994ba39a2d0 (diff) |
p2p: add peer pool logs and discovery logs to example/monitor.rs
Diffstat (limited to 'p2p/src/monitor.rs')
-rw-r--r-- | p2p/src/monitor.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/p2p/src/monitor.rs b/p2p/src/monitor.rs index 945c6aa..b7afb7c 100644 --- a/p2p/src/monitor.rs +++ b/p2p/src/monitor.rs @@ -107,7 +107,6 @@ pub enum PeerPoolEvent { #[derive(Clone, Debug)] pub enum DiscoveryEvent { LookupStarted(Endpoint), - Conn(ConnEvent), LookupFailed(Endpoint), LookupSucceeded(Endpoint, usize), RefreshStarted, @@ -143,7 +142,6 @@ impl fmt::Display for DiscoveryEvent { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let val = match self { DiscoveryEvent::LookupStarted(endpoint) => format!("LookupStarted: {endpoint}"), - DiscoveryEvent::Conn(event) => format!("Connection event: {event}"), DiscoveryEvent::LookupFailed(endpoint) => format!("LookupFailed: {endpoint}"), DiscoveryEvent::LookupSucceeded(endpoint, len) => { format!("LookupSucceeded: {endpoint} {len}") |