p2p/discover: move

This commit is contained in:
Felix Lange 2024-05-28 16:54:15 +02:00
parent d1e0495d70
commit e3ca63b7f5

View file

@ -230,10 +230,10 @@ func (list *revalidationList) remove(n *node) {
panic(fmt.Errorf("node %v not found in list", n.ID()))
}
list.nodes = slices.Delete(list.nodes, i, i+1)
n.revalList = nil
if len(list.nodes) == 0 {
list.nextTime = never
}
n.revalList = nil
}
func (list *revalidationList) contains(id enode.ID) bool {