mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-02 10:16:18 +00:00
remove any peers from the dht if a reset is triggered (from coord changes)
This commit is contained in:
@ -485,3 +485,9 @@ func dht_firstCloserThanThird(first *NodeID,
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (t *dht) resetPeers() {
|
||||
for _, b := range t.buckets_hidden {
|
||||
b.peers = b.peers[:0]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user