Skip to content

Commit

Permalink
fix: typo in AddRetryCondition function (#364)
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Martin Alonso <victor.martin@orangex.es>
  • Loading branch information
ervitis and Victor Martin Alonso committed Sep 4, 2020
1 parent 84b6606 commit 9dc1519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@ client := resty.New()

client.AddRetryCondition(
// RetryConditionFunc type is for retry condition function
// input: non-nil Response OR request execution error
func(r *resty.Response, err error) bool {
// input: non-nil Response OR request execution error
func(r *resty.Response) (bool, error) {
return r.StatusCode() == http.StatusTooManyRequests
},
)
Expand Down

0 comments on commit 9dc1519

Please sign in to comment.