glynnbird commented on a change in pull request #256:
URL: https://github.com/apache/couchdb-nano/pull/256#discussion_r581793111
##########
File path: lib/changesreader.js
##########
@@ -210,7 +210,7 @@ class ChangesReader {
self.continue = false
} else {
// don't immediately retry on error - exponential back-off
- delay = delay ? Math.max(60000, delay * 2) : 5000
+ delay = delay ? Math.min(60000, delay * 2) : 5000 // up to and
no more than one minute
Review comment:
Thanks for this. I'm sure the intention for this code was to mean "min",
but was implemented as "max" instead. Thanks for fixing 😊
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]