-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
add: error object to custom retry callback #337
add: error object to custom retry callback #337
Conversation
37639f1
to
958ecd4
Compare
@MikePresman want to just include the types PR in this one and adjust the types, and we can merge it together and close the other one? |
958ecd4
to
bb2c1bf
Compare
There are a lot of CI failures |
Apologies about the previous failing tests and lint, had pushed and it slipped my mind to check when I grabbed lunch. All should be well now. |
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.
lgtm, breaking change
Not a major, this feature is not yet released I'm not going to approve as my comment is not solved, feel free to land it if you disagree 👍 |
Could you please clarify, I've made the change to interfacing the function args as an object which is what I believe was the core of your comment unless you meant
passing the logger is something you want in this PR. |
I personally wouldn't merge without making sure that we're all in agreement |
…ods && add the attempt to the callback object
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.
lgtm
Edit: It was reran thank you. |
Did you address all remarks of @airhorns ? If so, could you comment on them accordingly and resolve them please? |
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.
LGTM after comments
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.
RSLGTM
This change introduces passing the error object to the custom retry callback; something that should've been done in the initial implementation of this feature but forgotten. Alas this PR introduces passing the error object to the callback.
Checklist
npm run test
andnpm run benchmark
and the Code of conduct