RetryForever => RetryUntil

This commit is contained in:
chrislu committed 2023-10-01 11:33:56 -07:00
1 parent ebd6f96d35
commit b02fdeabff
8 files changed
+13 -10

No files matched your search

@@ -70,7 +70,7 @@ func SubscribeMetaEvents(mc *MetaCache, selfSignature int32, client filer_pb.Fil
StopTsNs: 0,
EventErrorType: pb.FatalOnError,
}
util.RetryForever("followMetaUpdates", func() error {
util.RetryUntil("followMetaUpdates", func() error {
clientEpoch++
return pb.WithFilerClientFollowMetadata(client, metadataFollowOption, processEventFn)
}, func(err error) bool {