mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-22 05:46:30 +03:00
move router member initialization into router.init
This commit is contained in:
@@ -73,6 +73,9 @@ func (r *router) init(core *Core) {
|
||||
r.core.config.Mutex.RLock()
|
||||
r.nodeinfo.setNodeInfo(r.core.config.Current.NodeInfo, r.core.config.Current.NodeInfoPrivacy)
|
||||
r.core.config.Mutex.RUnlock()
|
||||
r.dht.init(r.core)
|
||||
r.searches.init(r.core)
|
||||
r.sessions.init(r.core)
|
||||
}
|
||||
|
||||
// Starts the mainLoop goroutine.
|
||||
|
||||
Reference in New Issue
Block a user