wenfengwang commented on a change in pull request #115: [ISSUE #114] add
orderly consume. resolve #114
URL: https://github.com/apache/rocketmq-client-go/pull/115#discussion_r303235370
##########
File path: consumer/consumer.go
##########
@@ -621,17 +634,19 @@ func (dc *defaultConsumer) updateProcessQueueTable(topic
string, mqs []*primitiv
if dc.cType == _PushConsume {
for mq := range mqSet {
+ // BUG: the mq will send to channel, if not copy once,
the next iter will modify the mq in the channel.
+ mq := mq
Review comment:
rename left object
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services