mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-09-18 12:12:30 +00:00
move periodic switch maintenance into the router instead of its own goroutine
This commit is contained in:
@@ -91,6 +91,7 @@ func (r *router) mainLoop() {
|
||||
case <-ticker.C:
|
||||
{
|
||||
// Any periodic maintenance stuff goes here
|
||||
r.core.switchTable.doMaintenance()
|
||||
r.core.dht.doMaintenance()
|
||||
util_getBytes() // To slowly drain things
|
||||
}
|
||||
|
Reference in New Issue
Block a user