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-core
Commits
ac2ecf38
Commit
ac2ecf38
authored
Feb 04, 2021
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update network/context.go
Co-authored-by:
Yusef Napora
<
yusef@protocol.ai
>
parent
8e949a77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
network/context.go
network/context.go
+1
-1
No files found.
network/context.go
View file @
ac2ecf38
...
...
@@ -69,7 +69,7 @@ func WithDialPeerTimeout(ctx context.Context, timeout time.Duration) context.Con
return
context
.
WithValue
(
ctx
,
dialPeerTimeoutCtxKey
{},
timeout
)
}
// WithUseTransient constructs a new context with an option that instructs t
o
network
// WithUseTransient constructs a new context with an option that instructs t
he
network
// that it is acceptable to use a transient connection when opening a new stream.
func
WithUseTransient
(
ctx
context
.
Context
)
context
.
Context
{
return
context
.
WithValue
(
ctx
,
useTransient
,
true
)
...
...
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