eliminate dependency on LocalPeer.Router
(from things outside LocalPeer)
This commit is contained in:
1 parent
2ba8f34132
commit
f3d20111d8
2 files changed
+12
-6
No files matched your search
@@ -44,6 +44,10 @@ func (routes *Routes) Start() {
|
||||
go routes.run(recalculate, wait)
|
||||
}
|
||||
|
||||
func (routes *Routes) PeerNames() PeerNameSet {
|
||||
return routes.peers.Names()
|
||||
}
|
||||
|
||||
func (routes *Routes) Unicast(name PeerName) (PeerName, bool) {
|
||||
routes.RLock()
|
||||
defer routes.RUnlock()
|
||||
|
||||
Reference in new issue
Block a user