Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed a typo; Updated comment
  • Loading branch information
hiranya911 committed May 22, 2019
commit d53a9aec588d99c5c2d4fb272c4e9be0cb1a5538
8 changes: 4 additions & 4 deletions src/utils/api-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,16 @@ export interface RetryConfig {
/** Maximum number of times to retry a given request. */
maxRetries: number;

/** HTTP status codes taht should be retried. */
/** HTTP status codes that should be retried. */
statusCodes?: number[];

/** Low-level I/O error codes that should be retried. */
ioErrorCodes?: string[];

/**
* The multiplier for exponential back off. The retry delay is calculated using the formula `(2^n) * backOffFactor`,
* where n is the number of retries performed so far. When the backOffFactor is set to 0 retries are not delayed.
* When the backOffFactor is 1, retry duration is doubled each iteration.
* The multiplier for exponential back off. The retry delay is calculated in seconds using the formula
* `(2^n) * backOffFactor`, where n is the number of retries performed so far. When the backOffFactor is set
* to 0, retries are not delayed. When the backOffFactor is 1, retry duration is doubled each iteration.
*/
backOffFactor?: number;

Expand Down