Skip to content

Commit

Permalink
Fix example to use the right retry policy
Browse files Browse the repository at this point in the history
  • Loading branch information
avillega committed Jul 8, 2024
1 parent f1b1f25 commit 988b955
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions examples/async/app.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Resonate, Context, Retry } from "@resonatehq/sdk";
import { Resonate, Context, exponential } from "@resonatehq/sdk";

const resonate = new Resonate({
timeout: 1000,
retry: Retry.exponential(
100, // initial delay (in ms)
retry: exponential(
100, // initial delay (in ms)
2, // backoff factor
Infinity, // max attempts
60000, // max delay (in ms, 1 minute)
Infinity, // max attempts
60000, // max delay (in ms, 1 minute)
),
});

Expand Down
2 changes: 1 addition & 1 deletion examples/async/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 988b955

Please sign in to comment.