Skip to content

Commit

Permalink
fix: readme typo
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit authored Dec 1, 2023
1 parent 232691a commit 5103fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ as part of long-running processes, or as FaaS (AWS Lambda).
// note that there is no failure handling in this example, because the combination of durable execution,
// communication, and state storage makes this unnecessary here.
const addToCart = async (ctx: restate.RpcContext, cartId: string /* the key */, ticketId: string) => {
// RPC participates in durable execution, so guaranteed to eventually happend and
// RPC participates in durable execution, so guaranteed to eventually happen and
// will never get duplicated. would suspend if the other takes too long
const success = await ctx.rpc<ticketApi>({ path: "tickets" }).reserve(ticketId);

Expand Down

0 comments on commit 5103fde

Please sign in to comment.