FR: a way to return an error that should not be retried
Opened this issue · 1 comments
ajeetdsouza commented
- In cenkalti/backoff, it is implemented using a
PermanentError
type. - In avast/retry-go, it is implemented using the
RetryIf
function and theUnrecoverable
type.
tzachshabtay commented
Note that you can do that with reinforcer (a utility that generates go-resilience
code), the readme has an example for exactly that.