mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
swarm/kademlia: change overrun in discovery simulation PR due to rebasing
This commit is contained in:
parent
74828b81ae
commit
b8d878a54d
1 changed files with 1 additions and 5 deletions
|
|
@ -263,14 +263,10 @@ func (k *Kademlia) SuggestPeer() (a OverlayAddr, o int, want bool) {
|
|||
if po >= depth {
|
||||
return false
|
||||
}
|
||||
ok := f(func(val pot.Val, _ int) bool {
|
||||
return f(func(val pot.Val, _ int) bool {
|
||||
a = k.callable(val)
|
||||
return a == nil
|
||||
})
|
||||
if !ok {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
})
|
||||
// found a candidate
|
||||
if a != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue