We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82732f commit d97e285Copy full SHA for d97e285
workflow/worker.go
@@ -121,8 +121,7 @@ func WithName(name string) registerOption {
121
}
122
123
124
-func processRegisterOptions(defaultOptions registerOptions, opts ...registerOption) (registerOptions, error) {
125
- options := defaultOptions
+func processRegisterOptions(options registerOptions, opts ...registerOption) (registerOptions, error) {
126
for _, opt := range opts {
127
if err := opt(&options); err != nil {
128
return options, fmt.Errorf("failed processing options: %w", err)
0 commit comments