mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
fix admin dht function, more cleanup, and slowly throttle back dht traffic when idle
This commit is contained in:
parent
5a85d3515d
commit
f3ec8c5b37
3 changed files with 24 additions and 24 deletions
|
@ -126,10 +126,7 @@ func (s *searches) doSearchStep(sinfo *searchInfo) {
|
|||
// Send to the next search target
|
||||
var next *dhtInfo
|
||||
next, sinfo.toVisit = sinfo.toVisit[0], sinfo.toVisit[1:]
|
||||
//var oldPings int
|
||||
//oldPings, next.pings = next.pings, 0
|
||||
s.core.dht.ping(next, &sinfo.dest)
|
||||
//next.pings = oldPings // Don't evict a node for searching with it too much
|
||||
sinfo.visited[*next.getNodeID()] = true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue