Bump dependabot/fetch-metadata from 1.3.1 to 1.3.3 #71

Merged
dependabot[bot] merged 3 commits from dependabot/github_actions/dependabot/fetch-metadata-1.3.3 into v3 2022-08-28 17:04:04 +03:00
Showing only changes of commit 585c94ad65 - Show all commits

6
kgo.go
View File

@ -264,13 +264,13 @@ func (k *kBroker) publish(ctx context.Context, msgs []*broker.Message, opts ...b
for _, msg := range msgs {
rec := &kgo.Record{Key: key}
rec.Topic, _ = msg.Header.Get(metadata.HeaderTopic)
if options.BodyOnly {
rec.Value = msg.Body
} else if k.opts.Codec.String() == "noop" {
if k.opts.Codec.String() == "noop" {
rec.Value = msg.Body
for k, v := range msg.Header {
rec.Headers = append(rec.Headers, kgo.RecordHeader{Key: k, Value: []byte(v)})
}
} else if options.BodyOnly {
rec.Value = msg.Body
} else {
rec.Value, err = k.opts.Codec.Marshal(msg)
if err != nil {