diff --git a/router/routes.go b/router/routes.go index 4c68e34d..f7c7c746 100644 --- a/router/routes.go +++ b/router/routes.go @@ -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) }