Skip to content

Commit b1be079

Browse files
committed
fix
1 parent 6e9f9a1 commit b1be079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/main/java/org/apache/rocketmq/client/java/impl/consumer/PushConsumerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ int cacheMessageCountThresholdPerQueue() {
499499
}
500500
// If a per-queue limit is explicitly configured, use it directly.
501501
if (maxCacheMessageCountEachQueue > 0) {
502-
return maxCacheMessageCountEachQueue;
502+
return Math.max(maxCacheMessageCountEachQueue, maxCacheMessageCount / size);
503503
}
504504
return Math.max(1, maxCacheMessageCount / size);
505505
}

0 commit comments

Comments
 (0)