Skip to content

Commit

Permalink
ignored deadline error
Browse files Browse the repository at this point in the history
Mocked networks will error here, and that causes tests to fail. Revert
to old behavior of just ignoring the error.
  • Loading branch information
MarcoPolo committed Dec 18, 2024
1 parent daef75a commit 03776cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions p2p/protocol/identify/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03776cd

Please sign in to comment.