AnonHxy commented on code in PR #15457:
URL: https://github.com/apache/pulsar/pull/15457#discussion_r867294077
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/SubscribeRateLimiter.java:
##########
@@ -140,6 +140,9 @@ private synchronized void
updateSubscribeRate(ConsumerIdentifier consumerIdentif
}
public void onSubscribeRateUpdate(SubscribeRate subscribeRate) {
+ if (this.subscribeRate.equals(subscribeRate)) {
Review Comment:
`this.subscribeRate` can not be null. Because it is initialized in the
`SubscribeRateLimiter` constructor, and it's value is setted from
`HierarchyTopicPolicies`, which at least the broker-level value is not null.
--
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]