Hey! I’ve been using go-resty retrycondition for a while now. One thing I’d suggest is to handle 429 (Too Many Requests) specifically.
Something like:
```go
client.SetRetryCondition(func(r *resty.Response, err error) bool {
return r.StatusCode() == 429 || r.StatusCode() >= 500
})
```
This helps with rate-limiting scenarios. Also, don’t forget to log retries for debugging!
Something like:
```go
client.SetRetryCondition(func(r *resty.Response, err error) bool {
return r.StatusCode() == 429 || r.StatusCode() >= 500
})
```
This helps with rate-limiting scenarios. Also, don’t forget to log retries for debugging!
