File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ func New(backend backend.Backend, options *Options) *Worker {
67
67
// Start starts the worker.
68
68
//
69
69
// To stop the worker, cancel the context passed to Start. To wait for completion of the active
70
- // work items , call `WaitForCompletion`.
70
+ // tasks , call `WaitForCompletion`.
71
71
func (w * Worker ) Start (ctx context.Context ) error {
72
72
if err := w .workflowWorker .Start (ctx ); err != nil {
73
73
return fmt .Errorf ("starting workflow worker: %w" , err )
@@ -96,6 +96,6 @@ func (w *Worker) RegisterWorkflow(wf workflow.Workflow) error {
96
96
return w .registry .RegisterWorkflow (wf )
97
97
}
98
98
99
- func (w * Worker ) RegisterActivity (a interface {} ) error {
99
+ func (w * Worker ) RegisterActivity (a workflow. Activity ) error {
100
100
return w .registry .RegisterActivity (a )
101
101
}
You can’t perform that action at this time.
0 commit comments