Skip to content

Commit c582435

Browse files
authored
[ISSUE #576] Fix get message property failed after it is set to go msg struct. (#578)
1 parent 35a8b6e commit c582435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (msg *Message) String() string {
4848
//GetProperty get message property by key string
4949
func (msg *Message) GetProperty(key string) string {
5050
if msg.Property != nil {
51-
v, ok := msg.Property["key"]
51+
v, ok := msg.Property[key]
5252
if ok {
5353
return v
5454
}

0 commit comments

Comments
 (0)