Use increment on p.retryCount to make golint happy.
This commit is contained in:
parent
ae89f7aa82
commit
e3f3918242
1 changed files with 1 additions and 1 deletions
2
peer.go
2
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 {
|
||||
|
|
Loading…
Reference in a new issue