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)