mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-19 21:36:43 +00:00
Use increment on p.retryCount to make golint happy.
This commit is contained in:
parent
ae89f7aa82
commit
e3f3918242
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…
x
Reference in New Issue
Block a user