diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-09-06 16:20:49 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-09-06 16:20:49 -0700 |
| commit | 6923af7280ed341ce90313df5e8eabaaf8e7aa47 (patch) | |
| tree | 57db6d3e15db9b85a966c84a51e78c3b590163e2 /unmaintained | |
| parent | 64f6532fbeb5e35028a19717186f712a14cbd13e (diff) | |
| download | seaweedfs-6923af7280ed341ce90313df5e8eabaaf8e7aa47.tar.xz seaweedfs-6923af7280ed341ce90313df5e8eabaaf8e7aa47.zip | |
refactoring
Diffstat (limited to 'unmaintained')
| -rw-r--r-- | unmaintained/repeated_vacuum/repeated_vacuum.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/unmaintained/repeated_vacuum/repeated_vacuum.go b/unmaintained/repeated_vacuum/repeated_vacuum.go index d85e45af0..2a9165f13 100644 --- a/unmaintained/repeated_vacuum/repeated_vacuum.go +++ b/unmaintained/repeated_vacuum/repeated_vacuum.go @@ -65,7 +65,16 @@ func genFile(grpcDialOption grpc.DialOption, i int) (*operation.AssignResult, st targetUrl := fmt.Sprintf("http://%s/%s", assignResult.Url, assignResult.Fid) - _, err = operation.UploadData(targetUrl, fmt.Sprintf("test%d", i), false, data, false, "bench/test", nil, assignResult.Auth) + uploadOption := &operation.UploadOption{ + UploadUrl: targetUrl, + Filename: fmt.Sprintf("test%d", i), + Cipher: false, + IsInputCompressed: true, + MimeType: "bench/test", + PairMap: nil, + Jwt: assignResult.Auth, + } + _, err = operation.UploadData(data, uploadOption) if err != nil { log.Fatalf("upload: %v", err) } |
