Remove name parameter from (*Peers)ForEach consumer function

It's part of the Peer anyway.
This commit is contained in:
David Wragg committed 2015-03-27 18:05:00 +00:00
1 parent 5617258cca
commit a670272a37
4 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ func (cm *ConnectionMaker) checkStateAndAttemptConnections() time.Duration {
// Add targets for peers that someone else is connected to, but we
// aren't
cm.peers.ForEach(func(name PeerName, peer *Peer) {
cm.peers.ForEach(func(peer *Peer) {
for _, conn := range peer.Connections() {
otherPeer := conn.Remote().Name
if otherPeer == cm.ourself.Name || ourConnectedPeers[otherPeer] {