Skip to content

Commit

Permalink
[ISSUE#6398] Remove duplicate code in TopicPublishInfo (apache#8034)
Browse files Browse the repository at this point in the history
  • Loading branch information
syshenyao and [email protected] authored Apr 18, 2024
1 parent 9d07cc7 commit 63bb9e2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ public MessageQueue selectOneMessageQueue(final String lastBrokerName) {
return selectOneMessageQueue();
} else {
for (int i = 0; i < this.messageQueueList.size(); i++) {
int index = this.sendWhichQueue.incrementAndGet();
int pos = index % this.messageQueueList.size();
MessageQueue mq = this.messageQueueList.get(pos);
MessageQueue mq = selectOneMessageQueue();
if (!mq.getBrokerName().equals(lastBrokerName)) {
return mq;
}
Expand Down

0 comments on commit 63bb9e2

Please sign in to comment.