diff --git a/crates/net/discv4/src/lib.rs b/crates/net/discv4/src/lib.rs index d91f4de812..4e9fdea5f7 100644 --- a/crates/net/discv4/src/lib.rs +++ b/crates/net/discv4/src/lib.rs @@ -809,13 +809,18 @@ impl Discv4Service { match self.kbuckets.entry(&key) { kbucket::Entry::Absent(entry) => { let node = NodeEntry::new(record); - let _ = entry.insert( + match entry.insert( node, NodeStatus { direction: ConnectionDirection::Outgoing, state: ConnectionState::Disconnected, }, - ); + ) { + BucketInsertResult::Inserted | BucketInsertResult::Pending { .. } => { + debug!(target : "discv4", ?record, "inserted new record"); + } + _ => return, + } } _ => return, }