Skip to content

Commit 503463c

Browse files
committed
explain fibonacci backoff
1 parent d2ad342 commit 503463c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/graphql-playground-react/src/components/Playground/util/fibonacci-backoff.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export class Backoff {
2020
const fn = async () => {
2121
await this.cb()
2222
this.count++
23+
// The first 15 attempts are fast, then fibonacci starts with n = 3
2324
if (this.running && this.count < this.maxRetries) {
2425
setTimeout(
2526
fn,

0 commit comments

Comments
 (0)