Skip to content

Conversation

@chrischiedo
Copy link
Contributor

Resolves the remaining half of #2335.

The other half was fixed in #2456 (RetryPolicy::on_throttle())

cc: @dbolduc

@chrischiedo chrischiedo requested a review from a team as a code owner June 25, 2025 14:32
@dbolduc
Copy link
Member

dbolduc commented Jun 25, 2025

/gcbrun

@dbolduc
Copy link
Member

dbolduc commented Jun 25, 2025

Thanks. Code in this file looks good. We also need corresponding changes in google-cloud-lro (which will hopefully simplify that code)

@chrischiedo
Copy link
Contributor Author

which will hopefully simplify that code

Not sure that the change makes the code any simpler, but I think it's more idiomatic.

@dbolduc dbolduc changed the title cleanup: refactor PollingErrorPolicy::on_in-progress() method to return Result<(), Error> instead of Option<Error> cleanup(gax): idiomatic return type for PollingErrorPolicy::on_in_progress() Jun 25, 2025
@dbolduc
Copy link
Member

dbolduc commented Jun 25, 2025

Not sure that the change makes the code any simpler, but I think it's more idiomatic.

You're right. I should have actually read the lro code before making such a statement. 😀

@dbolduc
Copy link
Member

dbolduc commented Jun 25, 2025

/gcbrun

@codecov
Copy link

codecov bot commented Jun 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.51%. Comparing base (9721263) to head (7deeb7c).
Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@dbolduc dbolduc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@dbolduc dbolduc merged commit 125aebd into googleapis:main Jun 25, 2025
23 of 24 checks passed
@chrischiedo chrischiedo deleted the cleanup-refactor-polling-error-policy branch June 26, 2025 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants