mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-13 17:36:28 +00:00
start migrating the router to an actor
This commit is contained in:
@ -210,7 +210,7 @@ func (p *peer) linkLoop() {
|
||||
case dinfo = <-p.dinfo:
|
||||
case _ = <-tick.C:
|
||||
if dinfo != nil {
|
||||
p.core.dht.peers <- dinfo
|
||||
p.core.router.insertPeer(&p.core.router, dinfo)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user