-
Notifications
You must be signed in to change notification settings - Fork 103
cleanup(gax): idiomatic return type for PollingErrorPolicy::on_in_progress()
#2522
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
cleanup(gax): idiomatic return type for PollingErrorPolicy::on_in_progress()
#2522
Conversation
|
/gcbrun |
|
Thanks. Code in this file looks good. We also need corresponding changes in |
Not sure that the change makes the code any simpler, but I think it's more idiomatic. |
PollingErrorPolicy::on_in-progress() method to return Result<(), Error> instead of Option<Error>PollingErrorPolicy::on_in_progress()
You're right. I should have actually read the |
|
/gcbrun |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2522 +/- ##
=======================================
Coverage 95.51% 95.51%
=======================================
Files 79 79
Lines 3188 3188
=======================================
Hits 3045 3045
Misses 143 143 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dbolduc
left a comment
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.
Awesome, thanks!
Resolves the remaining half of #2335.
The other half was fixed in #2456 (
RetryPolicy::on_throttle())cc: @dbolduc