Notify the Overlay when routes change
This commit is contained in:
1 parent
c2ad4c5633
commit
46d454730f
5 files changed
+88
-14
No files matched your search
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user