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

Change retry_if args in block #7

Open
arturictus opened this issue Feb 3, 2019 · 1 comment
Open

Change retry_if args in block #7

arturictus opened this issue Feb 3, 2019 · 1 comment

Comments

@arturictus
Copy link
Owner

retry_if right now yield the args response, endpoint.

    retry_if do |response, endpoint|
      endpoint.status_code != 200
    end

Will be clearer to pass only the endpoint

    retry_if do |endpoint|
      endpoint.response.class # => Wrappi::Response
    end
@arturictus
Copy link
Owner Author

reopen

@arturictus arturictus reopened this Feb 3, 2019
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

No branches or pull requests

1 participant