From 11a496404b9af6d435e5f9f2bb7ec8d0fe9d02bc Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 2 Sep 2021 19:55:01 -0700 Subject: [PATCH] reset wait time --- weed/util/retry.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/util/retry.go b/weed/util/retry.go index e1ad99d54..b7cd278b3 100644 --- a/weed/util/retry.go +++ b/weed/util/retry.go @@ -37,6 +37,7 @@ func RetryForever(name string, job func() error, onErrFn func(err error) bool) { for { err := job() if err == nil { + waitTime = time.Second break } if onErrFn(err) {