Skip to content

Commit

Permalink
chore: rename variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Souza committed Aug 4, 2020
1 parent e686145 commit 8ed6829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface PullRequestDetails {
}

const EXPONENTIAL_BACKOFF = 2;
const WAIT_TIME_SECONDS = 1000;
const DEFAULT_WAIT_TIME = 1000;

const delay = async (duration: number): Promise<void> => {
return new Promise((resolve: () => void): void => {
Expand Down Expand Up @@ -65,7 +65,7 @@ export const mergeWithRetry = async (
logDebug(`Original error: ${(error as Error).toString()}.`);

if (trial <= numberOfRetries) {
const nextRetryIn = trial ** EXPONENTIAL_BACKOFF * WAIT_TIME_SECONDS;
const nextRetryIn = trial ** EXPONENTIAL_BACKOFF * DEFAULT_WAIT_TIME;

logInfo(`Retrying in ${nextRetryIn.toString()}...`);

Expand Down

0 comments on commit 8ed6829

Please sign in to comment.