From cca7d881dec3f5d053a3b13ad5a4e6a2ab2cc879 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 5 Mar 2024 15:01:59 -0500 Subject: [PATCH] fix: if ErrTransportNotSupported, then just log and return the error, don't bother blocking --- service/default/p2p.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/service/default/p2p.go b/service/default/p2p.go index 4197105..28d5d6a 100644 --- a/service/default/p2p.go +++ b/service/default/p2p.go @@ -302,6 +302,11 @@ func (p *P2PServiceDefault) ConnectToNode(connectionUris []*url.URL, retried boo 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) { p.outgoingPeerFailures.Remove(idString) }