Skip to content

Commit

Permalink
Polish RocketMQ PullConsumerDemo to make code clear (alibaba#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Cod3r authored Jun 8, 2020
1 parent 09693fb commit 7e6c5e3
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,11 @@ public static void main(String[] args) throws MQClientException {
putMessageQueueOffset(mq, nextOffset);
consumer.updateConsumeOffset(mq, nextOffset);
switch (pullResult.getPullStatus()) {
case FOUND:
break;
case NO_MATCHED_MSG:
break;
case NO_NEW_MSG:
break SINGLE_MQ;
case FOUND:
case NO_MATCHED_MSG:
case OFFSET_ILLEGAL:
break;
default:
break;
}
Expand Down

0 comments on commit 7e6c5e3

Please sign in to comment.