Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Dec 18, 2024
1 parent 03776cd commit 8659248
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p2p/protocol/identify/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ 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
}

// Ignore the error. Consistent with our previous behavior. (See https://github.com/libp2p/go-libp2p/issues/3109)
_ = s.SetDeadline(time.Now().Add(Timeout))

if err := s.SetProtocol(proto); err != nil {
Expand Down

0 comments on commit 8659248

Please sign in to comment.