mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
keep dht peers alive
This commit is contained in:
parent
deb755e3e9
commit
3dab94be9f
4 changed files with 21 additions and 18 deletions
|
@ -93,6 +93,7 @@ func (r *router) mainLoop() {
|
|||
// Any periodic maintenance stuff goes here
|
||||
r.core.switchTable.doMaintenance()
|
||||
r.core.dht.doMaintenance()
|
||||
//r.core.peers.fixSwitchAfterPeerDisconnect() // FIXME makes sure dht peers get added quickly
|
||||
util_getBytes() // To slowly drain things
|
||||
}
|
||||
case f := <-r.admin:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue