diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-30 02:16:34 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-30 02:16:34 -0700 |
| commit | c057dd1f6413ae95264d63782a21692a2088919c (patch) | |
| tree | 9604d7d7d8b0135d2b08b8f5cec7dcc0b99198ed | |
| parent | 19098f2c2d3c5d795cde7d0136371fd6fb2ae118 (diff) | |
| download | seaweedfs-c057dd1f6413ae95264d63782a21692a2088919c.tar.xz seaweedfs-c057dd1f6413ae95264d63782a21692a2088919c.zip | |
add back upload retries
| -rw-r--r-- | weed/operation/upload_content.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
