Skip to content

Commit

Permalink
chore: update retryDelayMultiplier to 1.618
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon committed Jul 12, 2024
1 parent 5904fde commit 8780c02
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
37 changes: 29 additions & 8 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions src/sqladmin-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ function setupGaxiosConfig() {
noResponseRetries: 3,
// Defaults to: [[100, 199], [408, 408], [429, 429], [500, 599]]
statusCodesToRetry: [[500, 599]],
// The multiplier by which to increase the delay time between the
// completion of failed requests, and the initiation of the subsequent
// retrying request. Defaults to 2.
retryDelayMultiplier: 1.618,
},
};
}
Expand Down

0 comments on commit 8780c02

Please sign in to comment.