aboutsummaryrefslogtreecommitdiff
path: root/weed/messaging
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-09-06 16:20:49 -0700
committerChris Lu <chris.lu@gmail.com>2021-09-06 16:20:49 -0700
commit6923af7280ed341ce90313df5e8eabaaf8e7aa47 (patch)
tree57db6d3e15db9b85a966c84a51e78c3b590163e2 /weed/messaging
parent64f6532fbeb5e35028a19717186f712a14cbd13e (diff)
downloadseaweedfs-6923af7280ed341ce90313df5e8eabaaf8e7aa47.tar.xz
seaweedfs-6923af7280ed341ce90313df5e8eabaaf8e7aa47.zip
refactoring
Diffstat (limited to 'weed/messaging')
-rw-r--r--weed/messaging/broker/broker_append.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/weed/messaging/broker/broker_append.go b/weed/messaging/broker/broker_append.go
index 40c807164..599efad98 100644
--- a/weed/messaging/broker/broker_append.go
+++ b/weed/messaging/broker/broker_append.go
@@ -88,7 +88,16 @@ func (broker *MessageBroker) assignAndUpload(topicConfig *messaging_pb.TopicConf
// upload data
targetUrl := fmt.Sprintf("http://%s/%s", assignResult.Url, assignResult.Fid)
- uploadResult, err := operation.UploadData(targetUrl, "", broker.option.Cipher, data, false, "", nil, assignResult.Auth)
+ uploadOption := &operation.UploadOption{
+ UploadUrl: targetUrl,
+ Filename: "",
+ Cipher: broker.option.Cipher,
+ IsInputCompressed: false,
+ MimeType: "",
+ PairMap: nil,
+ Jwt: assignResult.Auth,
+ }
+ uploadResult, err := operation.UploadData(data, uploadOption)
if err != nil {
return nil, nil, fmt.Errorf("upload data %s: %v", targetUrl, err)
}