mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: dont log if nothing to evict (#12015)
This commit is contained in:
@ -1513,11 +1513,12 @@ impl Discv4Service {
|
||||
true
|
||||
});
|
||||
|
||||
trace!(target: "discv4", num=%failed_pings.len(), "evicting nodes due to failed pong");
|
||||
|
||||
// remove nodes that failed to pong
|
||||
for node_id in failed_pings {
|
||||
self.remove_node(node_id);
|
||||
if !failed_pings.is_empty() {
|
||||
// remove nodes that failed to pong
|
||||
trace!(target: "discv4", num=%failed_pings.len(), "evicting nodes due to failed pong");
|
||||
for node_id in failed_pings {
|
||||
self.remove_node(node_id);
|
||||
}
|
||||
}
|
||||
|
||||
let mut failed_lookups = Vec::new();
|
||||
@ -1528,11 +1529,13 @@ impl Discv4Service {
|
||||
}
|
||||
true
|
||||
});
|
||||
trace!(target: "discv4", num=%failed_lookups.len(), "evicting nodes due to failed lookup");
|
||||
|
||||
// remove nodes that failed the e2e lookup process, so we can restart it
|
||||
for node_id in failed_lookups {
|
||||
self.remove_node(node_id);
|
||||
if !failed_lookups.is_empty() {
|
||||
// remove nodes that failed the e2e lookup process, so we can restart it
|
||||
trace!(target: "discv4", num=%failed_lookups.len(), "evicting nodes due to failed lookup");
|
||||
for node_id in failed_lookups {
|
||||
self.remove_node(node_id);
|
||||
}
|
||||
}
|
||||
|
||||
self.evict_failed_find_nodes(now);
|
||||
@ -1553,6 +1556,10 @@ impl Discv4Service {
|
||||
true
|
||||
});
|
||||
|
||||
if failed_find_nodes.is_empty() {
|
||||
return
|
||||
}
|
||||
|
||||
trace!(target: "discv4", num=%failed_find_nodes.len(), "processing failed find nodes");
|
||||
|
||||
for node_id in failed_find_nodes {
|
||||
|
||||
Reference in New Issue
Block a user