Skip to content

Commit

Permalink
clean the the previous properties
Browse files Browse the repository at this point in the history
Signed-off-by: Meng Yan <myan@redhat.com>
  • Loading branch information
yanmxa committed Sep 13, 2023
1 parent 754a26b commit d06aea7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions protocol/mqtt_paho/v2/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func (p *Protocol) Send(ctx context.Context, m binding.Message, transformers ...
defer m.Finish(err)

msg := p.publishOption
msg.Properties.User = make(paho.UserProperties, 0)
if cecontext.TopicFrom(ctx) != "" {
msg.Topic = cecontext.TopicFrom(ctx)
cecontext.WithTopic(ctx, "")
Expand Down

0 comments on commit d06aea7

Please sign in to comment.