diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-03-28 13:41:58 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-03-28 13:41:58 -0700 |
| commit | eedd33dda32e2725c333f25d414231a8c7688485 (patch) | |
| tree | 7d9b4e1976e45462170a51a899a1cada6c409766 /weed/command/filer_copy.go | |
| parent | 005b4ab3fe57913025865745dc41d67bb3597611 (diff) | |
| download | seaweedfs-eedd33dda32e2725c333f25d414231a8c7688485.tar.xz seaweedfs-eedd33dda32e2725c333f25d414231a8c7688485.zip | |
refactoring
Diffstat (limited to 'weed/command/filer_copy.go')
| -rw-r--r-- | weed/command/filer_copy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index a8aea36bc..f596ab23d 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -425,7 +425,7 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File, replication = assignResult.Replication } - uploadResult, err := operation.Upload(targetUrl, fileName+"-"+strconv.FormatInt(i+1, 10), worker.options.cipher, io.NewSectionReader(f, i*chunkSize, chunkSize), false, "", nil, security.EncodedJwt(assignResult.Auth)) + uploadResult, err, _ := operation.Upload(targetUrl, fileName+"-"+strconv.FormatInt(i+1, 10), worker.options.cipher, io.NewSectionReader(f, i*chunkSize, chunkSize), false, "", nil, security.EncodedJwt(assignResult.Auth)) if err != nil { uploadError = fmt.Errorf("upload data %v to %s: %v\n", fileName, targetUrl, err) return |
