-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(main): allow retries to be limited #3
Conversation
Working on fixing the coverage. I already noticed problems as well. Will post an update soon. |
@voxpelli I think I need your help. husky prevents me from pushing, because jshint doesn't like the
|
Ah, got that solved. Those are supposed to be symlinks. Now it fails at a different spot:
|
I pushed with Let me know if I need to fix anything :) |
@oliversalzburg Sorry for the |
@@ -18,6 +18,7 @@ var Retry = function (options) { | |||
retryMin: 0, | |||
retryBase: 1.2, | |||
retryExponent: 33, | |||
retryLimit: -1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would prefer if the default was either false
or undefined
– more explicit about the intention of the value
@voxpelli I'm on 0.12.7 on Windows 10 |
@voxpelli Thanks for the review. New version is up :) |
Looks like the |
@@ -76,6 +77,12 @@ Retry.prototype._try = function () { | |||
self.retrying = undefined; | |||
self.abort = undefined; | |||
|
|||
|
|||
if (self.options.retryLimit > -1 && self.failures >= self.options.retryLimit) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check also needs to be updated now that the default has changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jeeze, it's getting late :P Sorry for missing that.
feat(main): allow retries to be limited
Very cool :) I'll start working on voxpelli/node-pg-pubsub#6 again tomorrow at work. Thanks for the help! |
Published as |
Interesting. I didn't understand the difference between end()ing and plain stopping :\ |
Ending is for graceful and immediate shutdowns of applications, to ensure that no matter what happens nothing, not even a reset, will try to establish a new connection :) |
No description provided.