Browse Source

fix travis

pull/1293/head
Chris Lu 5 years ago
parent
commit
ffa69b24ae
  1. 3
      weed/messaging/broker_append.go

3
weed/messaging/broker_append.go

@ -58,7 +58,6 @@ func (broker *MessageBroker) appendToFile(targetFile string, topicConfig *messag
func (broker *MessageBroker) assignAndUpload(topicConfig *messaging_pb.TopicConfiguration, data []byte) (*operation.AssignResult, *operation.UploadResult, error) {
var assignResult = &operation.AssignResult{}
var collection, replication string
// assign a volume location
if err := broker.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error {
@ -84,8 +83,6 @@ func (broker *MessageBroker) assignAndUpload(topicConfig *messaging_pb.TopicConf
assignResult.PublicUrl = resp.PublicUrl
assignResult.Count = uint64(resp.Count)
collection, replication = resp.Collection, resp.Replication
return nil
}); err != nil {
return nil, nil, err

Loading…
Cancel
Save