From 2ae3f812f8bd2ce1aaae505a31cc33decf872f0b Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 19 Jul 2022 11:43:31 -0700 Subject: [PATCH] minor --- weed/util/retry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/util/retry.go b/weed/util/retry.go index b7cd278b3..892341dc1 100644 --- a/weed/util/retry.go +++ b/weed/util/retry.go @@ -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()