slok / goresilience

A library to improve the resilience of Go applications in an easy and flexible way
https://medium.com/@slok/goresilience-a-go-library-to-improve-applications-resiliency-14d229aee385
Apache License 2.0
179 stars 24 forks source link

Disable retry #34

Closed eugennicoara closed 1 year ago

eugennicoara commented 3 years ago

Is there a particular reason for not allowing retry times to be set to zero to completely disable retry? if c.Times <= 0 { c.Times = 3 }

eugennicoara commented 1 year ago

Since I got no response in the past year I decided to only add the retry runner only when Times > 0.