From 43cc1168c007eba0a380e7dc4bb145d1f6837817 Mon Sep 17 00:00:00 2001 From: Victor Martin Alonso Date: Wed, 12 Aug 2020 12:34:15 +0200 Subject: [PATCH 1/2] fix: typo in AddRetryCondition function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab6d0a0a..0830420e 100644 --- a/README.md +++ b/README.md @@ -657,7 +657,7 @@ 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 { + func(r *resty.Response) (bool, error) { return r.StatusCode() == http.StatusTooManyRequests }, ) From 956b59f021625c220f44884348d6cf611aca14cb Mon Sep 17 00:00:00 2001 From: Victor Martin Alonso Date: Wed, 19 Aug 2020 20:40:45 +0200 Subject: [PATCH 2/2] fix: identation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0830420e..523d8f8f 100644 --- a/README.md +++ b/README.md @@ -656,7 +656,7 @@ client := resty.New() client.AddRetryCondition( // RetryConditionFunc type is for retry condition function - // input: non-nil Response OR request execution error + // input: non-nil Response OR request execution error func(r *resty.Response) (bool, error) { return r.StatusCode() == http.StatusTooManyRequests },