From 34bec14e3e8fe68254ff36308054311715576fbc Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Wed, 10 Sep 2014 17:48:53 +0100 Subject: [PATCH] cosmetic --- connection_maker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection_maker.go b/connection_maker.go index a7587533..ea4b1949 100644 --- a/connection_maker.go +++ b/connection_maker.go @@ -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()