Unverified Commit bbde01b3 authored by vyzo's avatar vyzo Committed by GitHub

Merge pull request #1061 from libp2p/feat/identify-transient

use transient connections in identify streams
parents 69916ed4 2a69faae
...@@ -357,7 +357,7 @@ func (ids *IDService) identifyConn(c network.Conn, signal chan struct{}) { ...@@ -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 { if err != nil {
log.Debugw("error opening identify stream", "error", err) log.Debugw("error opening identify stream", "error", err)
// the connection is probably already closed if we hit this. // the connection is probably already closed if we hit this.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment