aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_copy.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-05-10 03:50:30 -0700
committerChris Lu <chris.lu@gmail.com>2020-05-10 03:50:30 -0700
commit39e72fb23ca0d23cc563da50746c7a717bfa01e6 (patch)
treee5d4e94cd94f166dcf77ddcb3d332acdd8c916fa /weed/command/filer_copy.go
parent6bf3eb69cb9abd02e1d63ecdee485d198a3cab9a (diff)
downloadseaweedfs-39e72fb23ca0d23cc563da50746c7a717bfa01e6.tar.xz
seaweedfs-39e72fb23ca0d23cc563da50746c7a717bfa01e6.zip
go fmt
Diffstat (limited to 'weed/command/filer_copy.go')
-rw-r--r--weed/command/filer_copy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index 322ab20d5..2d6ba94d6 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -428,7 +428,7 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File,
uploadError = fmt.Errorf("upload %v to %s result: %v\n", fileName, targetUrl, uploadResult.Error)
return
}
- chunksChan <- uploadResult.ToPbFileChunk(assignResult.FileId, i * chunkSize)
+ chunksChan <- uploadResult.ToPbFileChunk(assignResult.FileId, i*chunkSize)
fmt.Printf("uploaded %s-%d to %s [%d,%d)\n", fileName, i+1, targetUrl, i*chunkSize, i*chunkSize+int64(uploadResult.Size))
}(i)