cosmetic: remove outdated comment
This commit is contained in:
1 parent
03c1f49850
commit
039446f756
1 file changed
-4
@@ -233,10 +233,6 @@ func (routes *Routes) calculateBroadcast(establishedAndSymmetric bool) map[PeerN
|
||||
if _, found := reached[remoteName]; found {
|
||||
continue
|
||||
}
|
||||
// conn.Remote() cannot by ourself. Modifying
|
||||
// peer.connections requires a write lock on Peers,
|
||||
// and since we are holding a read lock (due to the
|
||||
// ForEach), access without locking the peer is safe.
|
||||
if remoteConn, found := conn.Remote().connections[routes.ourself.Name]; !establishedAndSymmetric || (found && remoteConn.Established()) {
|
||||
hops = append(hops, remoteName)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user