Notify the InterHost when routes change
This commit is contained in:
1 parent
0f888e9735
commit
a9c710211b
4 files changed
+86
-13
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user