zongtanghu commented on a change in pull request #2598:
URL: https://github.com/apache/rocketmq/pull/2598#discussion_r625516530
##########
File path:
client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultLitePullConsumerImpl.java
##########
@@ -845,6 +879,19 @@ private PullResult pullSyncImpl(MessageQueue mq,
SubscriptionData subscriptionDa
null
);
this.pullAPIWrapper.processPullResult(mq, pullResult,
subscriptionData);
+ if (!this.consumeMessageHookList.isEmpty()) {
+ ConsumeMessageContext consumeMessageContext = null;
+ consumeMessageContext = new ConsumeMessageContext();
Review comment:
Here, why don't you initial the consumeMessageContext object instance
directly?
--
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]