Skip to content

Commit

Permalink
Merge pull request #935 from yanmxa/br_mqtt_ext
Browse files Browse the repository at this point in the history
Clean up the previous user properties from MQTT protocol
  • Loading branch information
embano1 authored Sep 18, 2023
2 parents 238c545 + 4bcddda commit 28780a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protocol/mqtt_paho/v2/write_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ func (b *pubMessageWriter) SetStructuredEvent(ctx context.Context, f format.Form

func (b *pubMessageWriter) Start(ctx context.Context) error {
if b.Properties == nil {
b.Properties = &paho.PublishProperties{
User: make([]paho.UserProperty, 0),
}
b.Properties = &paho.PublishProperties{}
}
// the UserProperties of publish message is used to load event extensions
b.Properties.User = make([]paho.UserProperty, 0)
return nil
}

Expand Down

0 comments on commit 28780a7

Please sign in to comment.