From e3f39182428791aabea5c6202e842a361dc1ff22 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 19 Mar 2014 17:58:58 -0500 Subject: [PATCH] Use increment on p.retryCount to make golint happy. --- peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peer.go b/peer.go index 025d4036..c0acca6f 100644 --- a/peer.go +++ b/peer.go @@ -1605,7 +1605,7 @@ func newOutboundPeer(s *server, addr string, persistent bool) *peer { srvrLog.Debugf("Attempting to connect to %s", addr) conn, err := btcdDial("tcp", addr) if err != nil { - p.retryCount += 1 + p.retryCount++ srvrLog.Debugf("Failed to connect to %s: %v", addr, err) if !persistent {