add RetryForever

This commit is contained in:
Chris Lu
2021-08-15 12:37:35 -07:00
parent a539d64896
commit fda2fc47b1
2 changed files with 24 additions and 1 deletions

View File

@@ -59,8 +59,11 @@ func SubscribeMetaEvents(mc *MetaCache, selfSignature int32, client filer_pb.Fil
}
return util.Retry("followMetaUpdates", func() error {
util.RetryForever("followMetaUpdates", func() error {
return pb.WithFilerClientFollowMetadata(client, "mount", dir, lastTsNs, selfSignature, processEventFn, true)
}, func(err error) bool {
glog.Errorf("follow metadata updates: %v", err)
return true
})
}