diff --git a/pkg/bbgo/isolation.go b/pkg/bbgo/isolation.go index 8d1f50f48..19cc215c3 100644 --- a/pkg/bbgo/isolation.go +++ b/pkg/bbgo/isolation.go @@ -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) +}