Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p
Commits
bbde01b3
Unverified
Commit
bbde01b3
authored
Feb 25, 2021
by
vyzo
Committed by
GitHub
Feb 25, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1061 from libp2p/feat/identify-transient
use transient connections in identify streams
parents
69916ed4
2a69faae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
p2p/protocol/identify/id.go
p2p/protocol/identify/id.go
+1
-1
No files found.
p2p/protocol/identify/id.go
View file @
bbde01b3
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment