Notify the Overlay when routes change

This commit is contained in:
David Wragg committed 2015-09-08 10:44:57 +01:00
1 parent c2ad4c5633
commit 46d454730f
5 files changed
+88 -14

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ func (peer *Peer) String() string {
// NB: This function should generally be invoked while holding a read
// lock on Peers and LocalPeer.
func (peer *Peer) Routes(stopAt *Peer, establishedAndSymmetric bool) (bool, map[PeerName]PeerName) {
routes := make(map[PeerName]PeerName)
routes := make(unicastRoutes)
routes[peer.Name] = UnknownPeerName
nextWorklist := []*Peer{peer}
for len(nextWorklist) > 0 {