From c057dd1f6413ae95264d63782a21692a2088919c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 30 Oct 2020 02:16:34 -0700 Subject: [PATCH] add back upload retries --- weed/operation/upload_content.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go index a4148cb22..3e96b5909 100644 --- a/weed/operation/upload_content.go +++ b/weed/operation/upload_content.go @@ -95,7 +95,7 @@ func doUpload(uploadUrl string, filename string, cipher bool, reader io.Reader, } func retriedUploadData(uploadUrl string, filename string, cipher bool, data []byte, isInputCompressed bool, mtype string, pairMap map[string]string, jwt security.EncodedJwt) (uploadResult *UploadResult, err error) { - for i := 0; i < 1; i++ { + for i := 0; i < 3; i++ { uploadResult, err = doUploadData(uploadUrl, filename, cipher, data, isInputCompressed, mtype, pairMap, jwt) if err == nil { return