fix: > not >=

This commit is contained in:
Derrick Hammer 2024-03-05 15:21:47 -05:00
parent 8f32074667
commit fc212ef246
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ func (p *P2PServiceDefault) ConnectToNode(connectionUris []*url.URL, retry uint,
socket, err := net.CreateTransportSocket(scheme, connectionUri) socket, err := net.CreateTransportSocket(scheme, connectionUri)
if err != nil { if err != nil {
if retry >= p.Config().P2P.MaxConnectionAttempts { if retry > p.Config().P2P.MaxConnectionAttempts {
p.Logger().Error("failed to connect, too many retries", zap.String("node", connectionUri.String()), zap.Error(err)) p.Logger().Error("failed to connect, too many retries", zap.String("node", connectionUri.String()), zap.Error(err))
counter := uint(0) counter := uint(0)
if p.outgoingPeerFailures.Contains(idString) { if p.outgoingPeerFailures.Contains(idString) {