Skip to content
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

retry: Change Policy to accept &mut self #681

Merged
merged 10 commits into from
Aug 23, 2022
Merged

Commits on Aug 3, 2022

  1. retry: Change Policy to accept &mut self

    This changes the `Policy` trait in the `retry` layer to accept `&mut
    self` instead of `&self` and changes the output type of the returned
    future to `()`. The motivation for this change is to simplify
    the trait a bit. By the trait methods having mutable references it means
    that for each retry request session you can mutate the local policy.
    This is because the policy is cloned for each individual request that
    arrives into the retry middleware. In addition, this allows the `Policy`
    trait to be object safe.
    LucioFranco committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    a859b22 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2022

  1. Configuration menu
    Copy the full SHA
    416e323 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2022

  1. Improve docs

    LucioFranco committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    f028e65 View commit details
    Browse the repository at this point in the history
  2. Relax service bounds

    LucioFranco committed Aug 12, 2022
    Configuration menu
    Copy the full SHA
    c047a8c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c4f45be View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2022

  1. Configuration menu
    Copy the full SHA
    a930936 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a12f517 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2022

  1. Apply suggestions from code review

    Co-authored-by: Eliza Weisman <[email protected]>
    LucioFranco and hawkw committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    b98f538 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e679d5d View commit details
    Browse the repository at this point in the history
  3. style

    LucioFranco committed Aug 22, 2022
    Configuration menu
    Copy the full SHA
    e0aa369 View commit details
    Browse the repository at this point in the history