-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adding exponential backoff #26
Conversation
Code Climate has analyzed commit a879004 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 56.6% (80% is the threshold). This pull request will bring the total coverage in the repository to 75.0% (-0.5% change). View more on Code Climate. |
@@ -17,13 +18,41 @@ export function getCredentials() { | |||
}; | |||
} | |||
|
|||
async function exponentialBackoff<T>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function exponentialBackoff
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
); | ||
} | ||
|
||
async function exponentialBackoff<T>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function exponentialBackoff
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Adds exponential backoff to the cloudflare library, enabling it to better handle 429 errors.