RetryForever => RetryUntil

This commit is contained in:
chrislu
2023-10-01 11:33:56 -07:00
parent ebd6f96d35
commit b02fdeabff
8 changed files with 13 additions and 10 deletions

View File

@@ -111,7 +111,7 @@ func runFilerRemoteGateway(cmd *Command, args []string) bool {
// synchronize /buckets folder
fmt.Printf("synchronize buckets in %s ...\n", remoteGatewayOptions.bucketsDir)
util.RetryForever("filer.remote.sync buckets", func() error {
util.RetryUntil("filer.remote.sync buckets", func() error {
return remoteGatewayOptions.followBucketUpdatesAndUploadToRemote(filerSource)
}, func(err error) bool {
if err != nil {