From c3ffd457efd119668df288d3c262d2fef1de7f6a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 15 Aug 2021 12:40:22 -0700 Subject: [PATCH] fix compilation error --- weed/filesys/meta_cache/meta_cache_subscribe.go | 1 + weed/util/retry.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/weed/filesys/meta_cache/meta_cache_subscribe.go b/weed/filesys/meta_cache/meta_cache_subscribe.go index 409120060..19f5e398a 100644 --- a/weed/filesys/meta_cache/meta_cache_subscribe.go +++ b/weed/filesys/meta_cache/meta_cache_subscribe.go @@ -66,4 +66,5 @@ func SubscribeMetaEvents(mc *MetaCache, selfSignature int32, client filer_pb.Fil return true }) + return nil } diff --git a/weed/util/retry.go b/weed/util/retry.go index 4b34d5129..569f8fda1 100644 --- a/weed/util/retry.go +++ b/weed/util/retry.go @@ -35,7 +35,7 @@ func Retry(name string, job func() error) (err error) { func RetryForever(name string, job func() error, onErrFn func(err error) bool) { waitTime := time.Second for { - err = job() + err := job() if err == nil { break }