mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
bbgo: add NewContextWithDefaultIsolation
This commit is contained in:
parent
198683d141
commit
60956e0157
|
@ -28,3 +28,7 @@ func NewIsolationFromContext(ctx context.Context) *Isolation {
|
|||
func NewContextWithIsolation(parent context.Context, isolation *Isolation) context.Context {
|
||||
return context.WithValue(parent, IsolationContextKey, isolation)
|
||||
}
|
||||
|
||||
func NewContextWithDefaultIsolation(parent context.Context) context.Context {
|
||||
return context.WithValue(parent, IsolationContextKey, defaultIsolation)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user