AnonHxy commented on code in PR #15457:
URL: https://github.com/apache/pulsar/pull/15457#discussion_r866904843


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java:
##########
@@ -3090,6 +3094,7 @@ private void 
initializeTopicSubscribeRateLimiterIfNeeded(Optional<TopicPolicies>
                 this.subscribeRateLimiter = Optional.of(new 
SubscribeRateLimiter(this));

Review Comment:
   Topic-level  `subscribeRate` will update using 
`org.apache.pulsar.broker.service.AbstractTopic#updateTopicPolicy`.  And in the 
constructor method of `SubscribeRateLimiter` will get `subscribeRate` using 
`topic.getSubscribeRate()`. @michaeljmarshall 



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