Skip to content

Commit 051ceb2

Browse files
authored
Rename NewWorker to New (#343)
1 parent 1d5bd15 commit 051ceb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

worker/worker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ type (
3434
Options = internal.WorkerOptions
3535
)
3636

37-
// NewWorker creates an instance of worker for managing workflow and activity executions.
37+
// New creates an instance of worker for managing workflow and activity executions.
3838
// service - thrift connection to the cadence server.
3939
// domain - the name of the cadence domain.
4040
// taskList - is the task list name you use to identify your client worker, also
4141
// identifies group of workflow and activity implementations that are hosted by a single worker process.
4242
// options - configure any worker specific options like logger, metrics, identity.
43-
func NewWorker(
43+
func New(
4444
service workflowserviceclient.Interface,
4545
domain string,
4646
taskList string,

0 commit comments

Comments
 (0)