diff options
| author | chrislu <chris.lu@gmail.com> | 2022-08-20 17:51:12 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-08-20 17:51:12 -0700 |
| commit | 9f50b310a01718158202c2b79c97ab74283ce5c8 (patch) | |
| tree | e59e88aedac8ee4923e81b7d4001aec014c5bf92 | |
| parent | 11f99836c32781a0c2b14e2a4090bec2d6f1aa22 (diff) | |
| download | seaweedfs-9f50b310a01718158202c2b79c97ab74283ce5c8.tar.xz seaweedfs-9f50b310a01718158202c2b79c97ab74283ce5c8.zip | |
remove unused code
| -rw-r--r-- | weed/command/filer_copy.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 042952f7d..aac43c697 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -444,7 +444,6 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File, concurrentChunks := make(chan struct{}, *worker.options.concurrenctChunks) var wg sync.WaitGroup var uploadError error - var collection, replication string fmt.Printf("uploading %s in %d chunks ...\n", fileName, chunkCount) for i := int64(0); i < int64(chunkCount) && uploadError == nil; i++ { @@ -485,12 +484,6 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File, } targetUrl := "http://" + assignResult.Location.Url + "/" + assignResult.FileId - if collection == "" { - collection = assignResult.Collection - } - if replication == "" { - replication = assignResult.Replication - } uploadOption := &operation.UploadOption{ UploadUrl: targetUrl, |
