|
@ -32,7 +32,7 @@ func Retry(name string, job func() error) (err error) { |
|
|
return err |
|
|
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 |
|
|
waitTime := time.Second |
|
|
for { |
|
|
for { |
|
|
err := job() |
|
|
err := job() |
|
|