Skip to content

Commit

Permalink
Minor fix of workflow/worker confusion in comment (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison authored Aug 21, 2024
1 parent 9ee3ddd commit 575d667
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/io/temporal/samples/hello/HelloChild.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ public static void main(String[] args) {
WorkflowClient client = WorkflowClient.newInstance(service);

/*
* Define the workflow factory. It is used to create workflow workers for a specific task queue.
* Define the worker factory. It is used to create workers for a specific task queue.
*/
WorkerFactory factory = WorkerFactory.newInstance(client);

/*
* Define the workflow worker. Workflow workers listen to a defined task queue and process
* workflows and activities.
* Define the worker. Workers listen to a defined task queue and process workflows and
* activities.
*/
Worker worker = factory.newWorker(TASK_QUEUE);

Expand Down

0 comments on commit 575d667

Please sign in to comment.