From 023e0a18f8895f66b1b8f21d8c5a53c724decf78 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Tue, 16 Apr 2024 19:56:51 +0200 Subject: [PATCH] Remove unused event --- examples/find_nodes.rs | 1 - src/discv5.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/examples/find_nodes.rs b/examples/find_nodes.rs index 012256816..d7cc08127 100644 --- a/examples/find_nodes.rs +++ b/examples/find_nodes.rs @@ -193,7 +193,6 @@ async fn main() { } match discv5_ev { Event::Discovered(enr) => info!("Enr discovered {}", enr), - Event::EnrAdded { enr, replaced: _ } => info!("Enr added {}", enr), Event::NodeInserted { node_id, replaced: _ } => info!("Node inserted {}", node_id), Event::SessionEstablished(enr, _) => info!("Session established {}", enr), Event::SocketUpdated(addr) => info!("Socket updated {}", addr), diff --git a/src/discv5.rs b/src/discv5.rs index d28d3038f..4f2b4e038 100644 --- a/src/discv5.rs +++ b/src/discv5.rs @@ -60,8 +60,6 @@ pub enum Event { /// This happen spontaneously through queries as nodes return ENR's. These ENR's are not /// guaranteed to be live or contactable. Discovered(Enr), - /// A new ENR was added to the routing table. - EnrAdded { enr: Enr, replaced: Option }, /// A new node has been added to the routing table. NodeInserted { node_id: NodeId,