-
Notifications
You must be signed in to change notification settings - Fork 707
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 context functions to retry and recover #172
Add context functions to retry and recover #172
Conversation
Codecov Report
@@ Coverage Diff @@
## master #172 +/- ##
==========================================
- Coverage 73.47% 72.91% -0.57%
==========================================
Files 36 36
Lines 1327 1340 +13
==========================================
+ Hits 975 977 +2
- Misses 303 314 +11
Partials 49 49
Continue to review full report at Codecov.
|
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, some comments could be more clear maybe, but not a blocker!
BackoffFuncContext adds the context parameter, allowing the retry function access to the contents of the parent context. Fixes grpc-ecosystem#171
Allows the user to configure a custom recovery handler that has access to the request scoped values in the context. Fixes grpc-ecosystem#168
a39880c
to
f29882f
Compare
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.
Nice, thanks for extra comments. Let's ping @domgreen to merge this.
Bump @domgreen 😁 |
Fixes #168
Fixes #171