mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/discover: move
This commit is contained in:
parent
d1e0495d70
commit
e3ca63b7f5
1 changed files with 1 additions and 1 deletions
|
|
@ -230,10 +230,10 @@ func (list *revalidationList) remove(n *node) {
|
||||||
panic(fmt.Errorf("node %v not found in list", n.ID()))
|
panic(fmt.Errorf("node %v not found in list", n.ID()))
|
||||||
}
|
}
|
||||||
list.nodes = slices.Delete(list.nodes, i, i+1)
|
list.nodes = slices.Delete(list.nodes, i, i+1)
|
||||||
n.revalList = nil
|
|
||||||
if len(list.nodes) == 0 {
|
if len(list.nodes) == 0 {
|
||||||
list.nextTime = never
|
list.nextTime = never
|
||||||
}
|
}
|
||||||
|
n.revalList = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (list *revalidationList) contains(id enode.ID) bool {
|
func (list *revalidationList) contains(id enode.ID) bool {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue