Skip to content

Commit

Permalink
Remove unused event
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Apr 16, 2024
1 parent 07572ef commit 023e0a1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/find_nodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 0 additions & 2 deletions src/discv5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Enr> },
/// A new node has been added to the routing table.
NodeInserted {
node_id: NodeId,
Expand Down

0 comments on commit 023e0a1

Please sign in to comment.