Skip to content

Commit

Permalink
[example] Revert to a simple greeter (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
igalshilman authored Dec 20, 2024
1 parent 0d00515 commit 93eebb6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/restate-sdk-examples/src/greeter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,7 @@ const greeter = service({
name: "greeter",
handlers: {
greet: async (ctx: Context, name: string) => {
const { id, promise } = ctx.awakeable<string>();

ctx.console.log(
`curl -X POST http://localhost:8080/restate/awakeables/${id}/resolve --json '"Guardiani"'`
);

const surnameProm = promise.orTimeout(1000 * 10);

return `Hello ${name} ${await surnameProm}`;
return `Hello ${name}`;
},
},
});
Expand Down

0 comments on commit 93eebb6

Please sign in to comment.