Notify the InterHost when routes change

This commit is contained in:
David Wragg committed 2015-06-12 16:12:59 +01:00
1 parent 0f888e9735
commit a9c710211b
4 files changed
+86 -13

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ func (peer *Peer) Info() 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 {