You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/07/06 00:29:56 UTC
[GitHub] [rocketmq-client-go] wenfengwang commented on a change in pull
request #85: [ISSUE #86] Add Interceptor for producer and consumer.
wenfengwang commented on a change in pull request #85: [ISSUE #86] Add Interceptor for producer and consumer.
URL: https://github.com/apache/rocketmq-client-go/pull/85#discussion_r300813818
##########
File path: internal/consumer/push_consumer.go
##########
@@ -99,9 +104,37 @@ func NewPushConsumer(consumerGroup string, opt primitive.ConsumerOption) (PushCo
} else {
p.submitToConsume = p.consumeMessageCurrently
}
+
+ ChainInterceptor(p)
+
return p, nil
}
+// ChainInterceptor chain list of interceptor as one interceptor
+func ChainInterceptor(p *pushConsumer) {
Review comment:
should be unexported?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services