Skip to content

Commit

Permalink
Merge pull request #1061 from libp2p/feat/identify-transient
Browse files Browse the repository at this point in the history
use transient connections in identify streams
  • Loading branch information
vyzo authored Feb 25, 2021
2 parents 69916ed + 2a69faa commit bbde01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/protocol/identify/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func (ids *IDService) identifyConn(c network.Conn, signal chan struct{}) {
}
}()

s, err = c.NewStream(context.TODO())
s, err = c.NewStream(network.WithUseTransient(context.TODO(), "identify"))
if err != nil {
log.Debugw("error opening identify stream", "error", err)
// the connection is probably already closed if we hit this.
Expand Down

0 comments on commit bbde01b

Please sign in to comment.