Skip to content

Commit

Permalink
Fix bug in producing message when key is not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Aug 4, 2022
1 parent 47cdfe5 commit 423aacb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Message struct {
Partition int `json:"partition"`
Offset int64 `json:"offset"`
HighWaterMark int64 `json:"highWaterMark"`
Key string `json:"key"`
Key interface{} `json:"key"`
Value interface{} `json:"value"`
Headers map[string]interface{} `json:"headers"`

Expand Down

0 comments on commit 423aacb

Please sign in to comment.