aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/upload_content.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-10-01 11:33:56 -0700
committerchrislu <chris.lu@gmail.com>2023-10-01 11:33:56 -0700
commitb02fdeabff4861a4fb1913de7c3104b511757da5 (patch)
tree5ddf12ed120081bf9b9834c5be12a0b2f41c07c4 /weed/operation/upload_content.go
parentebd6f96d35b54adcf67f0353bff944a36a5c5f32 (diff)
downloadseaweedfs-b02fdeabff4861a4fb1913de7c3104b511757da5.tar.xz
seaweedfs-b02fdeabff4861a4fb1913de7c3104b511757da5.zip
RetryForever => RetryUntil
Diffstat (limited to 'weed/operation/upload_content.go')
-rw-r--r--weed/operation/upload_content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 17e767472..108ec3df2 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -116,7 +116,7 @@ func UploadWithRetry(filerClient filer_pb.FilerClient, assignRequest *filer_pb.A
return uploadErr
}
if uploadOption.RetryForever {
- util.RetryForever("uploadWithRetryForever", doUploadFunc, func(err error) (shouldContinue bool) {
+ util.RetryUntil("uploadWithRetryForever", doUploadFunc, func(err error) (shouldContinue bool) {
glog.V(0).Infof("upload content: %v", err)
return true
})