Browse Source

fix compilation error

pull/2274/head
Chris Lu 3 years ago
parent
commit
c3ffd457ef
  1. 1
      weed/filesys/meta_cache/meta_cache_subscribe.go
  2. 2
      weed/util/retry.go

1
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 true
}) })
return nil
} }

2
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) { func RetryForever(name string, job func() error, onErrFn func(err error) bool) {
waitTime := time.Second waitTime := time.Second
for { for {
err = job()
err := job()
if err == nil { if err == nil {
break break
} }

Loading…
Cancel
Save