cosmetic
This commit is contained in:
1 parent
bf38e902f2
commit
34bec14e3e
1 file changed
+2
-2
+2
-2
@@ -116,8 +116,8 @@ func (cm *ConnectionMaker) checkStateAndAttemptConnections(now time.Time) {
|
||||
// Add targets for peers that someone else is connected to, but we
|
||||
// aren't
|
||||
cm.router.Peers.ForEach(func(name PeerName, peer *Peer) {
|
||||
peer.ForEachConnection(func(peer2 PeerName, conn Connection) {
|
||||
if peer2 == ourself.Name || our_connected_peers[peer2] {
|
||||
peer.ForEachConnection(func(otherPeer PeerName, conn Connection) {
|
||||
if otherPeer == ourself.Name || our_connected_peers[otherPeer] {
|
||||
return
|
||||
}
|
||||
address := conn.RemoteTCPAddr()
|
||||
|
||||
Reference in new issue
Block a user