Skip to content

Commit

Permalink
fixed the format of jitter function
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Oct 23, 2023
1 parent 1039fb8 commit 3512bbc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ exports.jitteredSleepTime = function (numofRetries, currentSleepTime, maxSleepTi
else {
totalTimeout += sleep
}
return {sleep ,totalTimeout}

return {sleep, totalTimeout}
}

/**
Expand All @@ -455,7 +456,8 @@ function chooseRandom (firstNumber, secondNumber) {
if (firstNumber > secondNumber) {
bigNumber = firstNumber;
smallNumber = secondNumber;
} else if (firstNumber === secondNumber) {
}
else if (firstNumber === secondNumber) {
bigNumber = 1;
smallNumber = 0;
}
Expand Down

0 comments on commit 3512bbc

Please sign in to comment.