We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6079f22 commit 5ec8710Copy full SHA for 5ec8710
producer/nsq.go
@@ -72,7 +72,7 @@ func (n *NSQ) inputMsg(topic string, mCh chan []byte, ec *uint64) {
72
break
73
}
74
75
- err = n.producer.Publish(topic, msg)
+ err = n.producer.Publish(topic, append([]byte{}, msg...))
76
if err != nil {
77
n.logger.Println(err)
78
*ec++
0 commit comments