eliminate dependency on LocalPeer.Router

(from things outside LocalPeer)
This commit is contained in:
Matthias Radestock committed 2015-04-10 10:51:40 +01:00
1 parent 2ba8f34132
commit f3d20111d8
2 files changed
+12 -6

No files matched your search

+4
View File
@@ -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()