Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Update network/context.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yusef Napora <yusef@protocol.ai>
  • Loading branch information
vyzo and yusefnapora committed Feb 3, 2021
1 parent b780593 commit c2a150e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/context.go
Expand Up @@ -49,7 +49,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 to network
// WithUseTransient constructs a new context with an option that instructs the 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)
Expand Down

0 comments on commit c2a150e

Please sign in to comment.