Skip to content

Commit 3fb9198

Browse files
YunchuWangCopilot
andauthored
Update examples/hello-world/entity-counter.ts
Co-authored-by: Copilot <[email protected]>
1 parent 4363151 commit 3fb9198

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/hello-world/entity-counter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class CounterEntity extends TaskEntity<CounterState> {
8484
const worker = new TaskHubGrpcWorker(grpcServerAddress);
8585

8686
// Register the entity with the worker
87-
worker.addEntity("Counter", () => new CounterEntity());
87+
worker.addNamedEntity("Counter", () => new CounterEntity());
8888

8989
try {
9090
await worker.start();

0 commit comments

Comments
 (0)