node-retry icon indicating copy to clipboard operation
node-retry copied to clipboard

[Docs] Question about factor

Open vitkarpov opened this issue 6 years ago • 0 comments

Hey, hope you're doing well!

I have a question about this chapter in the docs. You declare factor as an exponential factor but in the formula below:

Math.min(random * minTimeout * Math.pow(factor, attempt), maxTimeout)

it's used in terms of the power's base, not the factor itself, isn't it? From my perspective, it's not the same.

Can you elaborate this subtle moment, please?

vitkarpov avatar Aug 30 '18 10:08 vitkarpov