File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ var DefaultWorkerOptions = internal.DefaultOptions
36
36
func New (backend backend.Backend , options * Options ) * Worker {
37
37
if options == nil {
38
38
options = & internal .DefaultOptions
39
- }
40
-
41
- if options .WorkflowExecutorCacheSize == 0 {
42
- options . WorkflowExecutorCacheSize = internal . DefaultOptions . WorkflowExecutorCacheSize
43
- }
44
-
45
- if options .WorkflowExecutorCacheTTL == 0 {
46
- options . WorkflowExecutorCacheTTL = internal . DefaultOptions . WorkflowExecutorCacheTTL
39
+ } else {
40
+ if options . WorkflowExecutorCacheSize == 0 {
41
+ options .WorkflowExecutorCacheSize = internal . DefaultOptions . WorkflowExecutorCacheSize
42
+ }
43
+
44
+ if options . WorkflowExecutorCacheTTL == 0 {
45
+ options .WorkflowExecutorCacheTTL = internal . DefaultOptions . WorkflowExecutorCacheTTL
46
+ }
47
47
}
48
48
49
49
registry := workflowinternal .NewRegistry ()
You can’t perform that action at this time.
0 commit comments