Skip to content

Commit

Permalink
[ISSUE #166] fix concurrency for message property string (#1141)
Browse files Browse the repository at this point in the history
* should use BrokerName for send back since the StoreHost in msg may not reachable in cloud env

* fix message string concurrent map issue
  • Loading branch information
absolute8511 committed Sep 4, 2024
1 parent fe4b42e commit 447cf73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitive/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (m *Message) GetShardingKey() string {

func (m *Message) String() string {
return fmt.Sprintf("[topic=%s, body=%s, Flag=%d, properties=%v, TransactionId=%s]",
m.Topic, string(m.Body), m.Flag, m.properties, m.TransactionId)
m.Topic, string(m.Body), m.Flag, m.MarshallProperties(), m.TransactionId)
}

func (m *Message) Marshal() []byte {
Expand Down

0 comments on commit 447cf73

Please sign in to comment.