From 03776cdfdbedc4f72913224d864e14f949827fec Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Tue, 17 Dec 2024 21:12:13 -0800 Subject: [PATCH] ignored deadline error Mocked networks will error here, and that causes tests to fail. Revert to old behavior of just ignoring the error. --- p2p/protocol/identify/id.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/p2p/protocol/identify/id.go b/p2p/protocol/identify/id.go index b6d5240ba6..a1908f3d6e 100644 --- a/p2p/protocol/identify/id.go +++ b/p2p/protocol/identify/id.go @@ -445,10 +445,7 @@ func newStreamAndNegotiate(ctx context.Context, c network.Conn, proto protocol.I log.Debugw("error opening identify stream", "peer", c.RemotePeer(), "error", err) return nil, err } - err = s.SetDeadline(time.Now().Add(Timeout)) - if err != nil { - return nil, err - } + _ = s.SetDeadline(time.Now().Add(Timeout)) if err := s.SetProtocol(proto); err != nil { log.Warnf("error setting identify protocol for stream: %s", err)