mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
p2p/discover: remove logging checks in for dead nodes (it's always zero)
This commit is contained in:
parent
0b44fc4dea
commit
30eb2bf406
1 changed files with 2 additions and 2 deletions
|
|
@ -568,7 +568,7 @@ func (tab *Table) deleteInBucket(b *bucket, id enode.ID) *node {
|
||||||
|
|
||||||
// Add replacement.
|
// Add replacement.
|
||||||
if len(b.replacements) == 0 {
|
if len(b.replacements) == 0 {
|
||||||
tab.log.Debug("Removed dead node", "b", b.index, "id", n.ID(), "ip", n.IP(), "checks", n.livenessChecks)
|
tab.log.Debug("Removed dead node", "b", b.index, "id", n.ID(), "ip", n.IP())
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
rindex := tab.rand.Intn(len(b.replacements))
|
rindex := tab.rand.Intn(len(b.replacements))
|
||||||
|
|
@ -577,7 +577,7 @@ func (tab *Table) deleteInBucket(b *bucket, id enode.ID) *node {
|
||||||
b.entries = append(b.entries, rep)
|
b.entries = append(b.entries, rep)
|
||||||
tab.nodeAdded(b, rep)
|
tab.nodeAdded(b, rep)
|
||||||
|
|
||||||
tab.log.Debug("Replaced dead node", "b", b.index, "id", n.ID(), "ip", n.IP(), "checks", n.livenessChecks, "r", rep.ID(), "rip", rep.IP())
|
tab.log.Debug("Replaced dead node", "b", b.index, "id", n.ID(), "ip", n.IP(), "r", rep.ID(), "rip", rep.IP())
|
||||||
return rep
|
return rep
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue