diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-03-08 21:54:47 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-03-08 21:54:47 -0700 |
| commit | 3934c69757757fd0067f4db0fb99735c1d95fb67 (patch) | |
| tree | f4975827d12f1450fed0f82cc4e9265f66b62ebb | |
| parent | 2e3f6ad3a97bc7fad349e63289695547f92c1f8b (diff) | |
| download | seaweedfs-3934c69757757fd0067f4db0fb99735c1d95fb67.tar.xz seaweedfs-3934c69757757fd0067f4db0fb99735c1d95fb67.zip | |
clean up
| -rw-r--r-- | weed/operation/upload_content.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go index a83317975..52f8f9e2b 100644 --- a/weed/operation/upload_content.go +++ b/weed/operation/upload_content.go @@ -158,8 +158,6 @@ func doUpload(uploadUrl string, filename string, cipher bool, reader io.Reader, } } - println("data size", clearDataLen) - if cipher { // encrypt(gzip(data)) @@ -170,12 +168,10 @@ func doUpload(uploadUrl string, filename string, cipher bool, reader io.Reader, err = fmt.Errorf("encrypt input: %v", encryptionErr) return } - println("encrypted data size", len(encryptedData)) // upload data uploadResult, err = upload_content(uploadUrl, func(w io.Writer) (err error) { - n, err := w.Write(encryptedData) - println("writtern data size", n) + _, err = w.Write(encryptedData) return }, "", false, "", nil, jwt) if uploadResult != nil { @@ -187,8 +183,7 @@ func doUpload(uploadUrl string, filename string, cipher bool, reader io.Reader, } else { // upload data uploadResult, err = upload_content(uploadUrl, func(w io.Writer) (err error) { - n, err := w.Write(data) - println("written data size", n) + _, err = w.Write(data) return }, filename, contentIsGzipped, mtype, pairMap, jwt) } |
