xujianhai666 commented on a change in pull request #106: [ISSUE #105] Add
PullConsumer. resolve #105
URL: https://github.com/apache/rocketmq-client-go/pull/106#discussion_r301901704
##########
File path: consumer/consumer.go
##########
@@ -247,18 +253,65 @@ type defaultConsumer struct {
prCh chan PullRequest
}
-func (dc *defaultConsumer) persistConsumerOffset() {
+func (dc *defaultConsumer) start() error {
+
+ if dc.model == Clustering {
+ // set retry topic
+ retryTopic := internal.GetRetryTopic(dc.consumerGroup)
+ dc.subscriptionDataTable.Store(retryTopic,
buildSubscriptionData(retryTopic,
+ MessageSelector{TAG, _SubAll}))
Review comment:
done
----------------------------------------------------------------
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