This commit is contained in:
chrislu 2022-07-19 11:43:31 -07:00
parent 9667588af0
commit 2ae3f812f8

View file

@ -32,7 +32,7 @@ func Retry(name string, job func() error) (err error) {
return err
}
func RetryForever(name string, job func() error, onErrFn func(err error) bool) {
func RetryForever(name string, job func() error, onErrFn func(err error) (shouldContinue bool)) {
waitTime := time.Second
for {
err := job()