This commit is contained in:
chrislu committed 2022-07-19 11:43:31 -07:00
1 parent 9667588af0
commit 2ae3f812f8
1 file changed
+1 -1
+1 -1
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()