Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia committed Sep 24, 2024
1 parent bb225ec commit 27a8693
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ class Counter {
}

// Invoking the counter actor
const counterProxy = actors.proxy({
actor: Counter,
server: "http://localhost:8000",
});
const counter = counterProxy.id("counter-id");
const counter = actors.proxy(Counter).id("counter-id");
// Increment counter
await counter.increment();
// Get current count
Expand Down

0 comments on commit 27a8693

Please sign in to comment.