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

feat: add support for custom retry functions #429

Closed
wants to merge 1 commit into from

Conversation

nkzren
Copy link

@nkzren nkzren commented Oct 4, 2023

Closes #427

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 95.072% (-0.01%) from 95.083% when pulling ad613ae on nkzren:master into f945d4b on gavv:master.

@@ -3991,3 +4002,52 @@ func TestRequest_Panics(t *testing.T) {
assert.Panics(t, func() { newRequest(newMockChain(t), config, "GET", "") })
})
}

func TestRequest_RetriesCustomFunc(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should cover for both

  • WithCustomRetryFunc that returns true
  • WithCustomRetryFunc that returns false

Wdyt?

@gavv gavv added the ready for review Pull request can be reviewed label Oct 13, 2023
@nkzren
Copy link
Author

nkzren commented Oct 24, 2023

Hey, I'm dropping this since it's been a while and I'm currently stuck with other affairs, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Pull request can be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add WithRetryHandler for a custom RetryPolicy
4 participants