fix: if ErrTransportNotSupported, then just log and return the error, don't bother blocking
This commit is contained in:
parent
397ed0d6ec
commit
cca7d881de
|
@ -302,6 +302,11 @@ func (p *P2PServiceDefault) ConnectToNode(connectionUris []*url.URL, retried boo
|
||||||
return p.ConnectToNode(connectionUris, retried, fromPeer)
|
return p.ConnectToNode(connectionUris, retried, fromPeer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if errors.Is(err, net.ErrTransportNotSupported) {
|
||||||
|
p.Logger().Debug("failed to connect, unsupported transport", zap.String("node", connectionUri.String()), zap.Error(err))
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if p.outgoingPeerFailures.Contains(idString) {
|
if p.outgoingPeerFailures.Contains(idString) {
|
||||||
p.outgoingPeerFailures.Remove(idString)
|
p.outgoingPeerFailures.Remove(idString)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue