Skip to content

Update retry-policies to 0.5 #233

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

musicinmybrain
Copy link
Contributor

@musicinmybrain musicinmybrain commented May 14, 2025

The build_with_total_retry_duration_and_max_retries method of retry_policies::policies::ExponentialBackoffBuilder was renamed to build_with_total_retry_duration_and_limit_retries. No code changes are required, but since reqwest-retry re-exports retry-policies::policies as reqwest_retry::policies, this is a SemVer-breaking change for reqwest-retry as well.

@musicinmybrain musicinmybrain requested a review from a team as a code owner May 14, 2025 10:56
@jayvdb
Copy link
Contributor

jayvdb commented May 17, 2025

Would be a good idea to update the CHANGELOG.md as part of this PR, and probably mention it is a breaking change there

@kyle-leonhard
Copy link

Heads up, there's a new version of retry-policies @musicinmybrain you could grab for this

@musicinmybrain
Copy link
Contributor Author

Heads up, there's a new version of retry-policies @musicinmybrain you could grab for this

I think retry-policies = "0.5" is still fine. It permits the latest retry-policies, which is now 0.5.1.

@baszalmstra
Copy link

Could this be merged and released? This is currently blocking us to update some other dependencies as well.

The build_with_total_retry_duration_and_max_retries method of
retry_policies::policies::ExponentialBackoffBuilder was renamed to
build_with_total_retry_duration_and_limit_retries. No code changes are
required, but since reqwest-retry re-exports retry-policies::policies as
reqwest_retry::policies, this is a SemVer-breaking change for
reqwest-retry as well.
@musicinmybrain
Copy link
Contributor Author

(Rebased without changes.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants