fix compilation error

This commit is contained in:
Chris Lu 2021-08-15 12:40:22 -07:00
parent 49b5e47bd1
commit c3ffd457ef
2 changed files with 2 additions and 1 deletions

View file

@ -66,4 +66,5 @@ func SubscribeMetaEvents(mc *MetaCache, selfSignature int32, client filer_pb.Fil
return true
})
return nil
}

View file

@ -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
}