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
2a69faae
Commit
2a69faae
authored
Feb 24, 2021
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use transient connections in identify streams
parent
69916ed4
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 @
2a69faae
...
...
@@ -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.
...
...
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