diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-03-07 11:45:35 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-03-07 11:45:35 -0800 |
| commit | 3b2a9c98efebdf0ef07666f6ad9a0b2169e342da (patch) | |
| tree | a6e6ba0f50e70ac6168608fd5b317b68d7ba4eb7 | |
| parent | df72dc206d9064daa79439ef9f3fb83f491eebd8 (diff) | |
| download | seaweedfs-3b2a9c98efebdf0ef07666f6ad9a0b2169e342da.tar.xz seaweedfs-3b2a9c98efebdf0ef07666f6ad9a0b2169e342da.zip | |
fix nil
| -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 4bfc08425..9957a04cd 100644 --- a/weed/operation/upload_content.go +++ b/weed/operation/upload_content.go @@ -95,9 +95,9 @@ 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 < 3; i++ { - uploadResult.RetryCount = i uploadResult, err = doUploadData(uploadUrl, filename, cipher, data, isInputCompressed, mtype, pairMap, jwt) if err == nil { + uploadResult.RetryCount = i return } else { glog.Warningf("uploading to %s: %v", uploadUrl, err) |
