From fb0ba31036052979366ff84e63188ad0c850ee48 Mon Sep 17 00:00:00 2001 From: Sukun Date: Thu, 1 Feb 2024 21:13:17 +0530 Subject: [PATCH] basichost: don't error if identify doesn't complete within deadline --- p2p/host/basic/basic_host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/host/basic/basic_host.go b/p2p/host/basic/basic_host.go index 8e6e8efe7c..0c82a154b7 100644 --- a/p2p/host/basic/basic_host.go +++ b/p2p/host/basic/basic_host.go @@ -749,7 +749,7 @@ func (h *BasicHost) dialPeer(ctx context.Context, p peer.ID) error { select { case <-h.ids.IdentifyWait(c): case <-ctx.Done(): - return fmt.Errorf("identify failed to complete: %w", ctx.Err()) + log.Debugf("identify didn't complete within deadline for: %s", p) } log.Debugf("host %s finished dialing %s", h.ID(), p)