Need Help Implementing go-resty retrycondition: Best Practices and Examples?

10 Replies, 2020 Views

Yo, I feel you on the retry spam concern. You can totally limit retries by time using `SetRetryWaitTime()` and `SetRetryMaxWaitTime()`.

For example:
```go
client.SetRetryWaitTime(2 * time.Second)
client.SetRetryMaxWaitTime(10 * time.Second)
```
This way, it won’t go crazy retrying too fast. Also, check out the official docs—they’ve got some solid examples for go-resty retrycondition.

Messages In This Thread



Users browsing this thread: 1 Guest(s)