Add retry for 429 replies from Cisco
twodarek opened this issue · 1 comments
twodarek commented
Repo: https://github.com/twodarek/go-cisco-webex-teams
// Create a Resty Client
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 {
return r.StatusCode() == http.StatusTooManyRequests
},
)
from https://github.com/go-resty/resty/blob/ca7661ad51fe2117dc2596d5f7e9f9ebd616660d/README.md#L667