Jason918 commented on code in PR #18800:
URL: https://github.com/apache/pulsar/pull/18800#discussion_r1044144655


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractDispatcherMultipleConsumers.java:
##########
@@ -189,10 +189,14 @@ private int getConsumerFromHigherPriority(int 
targetPriority) {
      * @return
      */
     private int getNextConsumerFromSameOrLowerLevel(int 
currentRoundRobinIndex) {
+        Consumer currentRRConsumer = consumerList.get(currentRoundRobinIndex);
+        if (isConsumerAvailable(currentRRConsumer)) {

Review Comment:
   It seems there is not much performance improvement. It's logically the same 
as it returns in the first do loop, right?
   So it's more like making the code more clear? 
   



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to