Technoboy- commented on code in PR #20660:
URL: https://github.com/apache/pulsar/pull/20660#discussion_r1253059307


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentReplicator.java:
##########
@@ -624,8 +624,9 @@ public Optional<DispatchRateLimiter> getRateLimiter() {
     public void initializeDispatchRateLimiterIfNeeded() {
         synchronized (dispatchRateLimiterLock) {
             if (!dispatchRateLimiter.isPresent()
-                && 
DispatchRateLimiter.isDispatchRateEnabled(topic.getReplicatorDispatchRate())) {
-                this.dispatchRateLimiter = Optional.of(new 
DispatchRateLimiter(topic, Type.REPLICATOR));
+                    && 
DispatchRateLimiter.isDispatchRateEnabled(topic.getReplicatorDispatchRate())) {
+                this.dispatchRateLimiter = Optional.of(
+                        new DispatchRateLimiter(topic, cursor.getName(), 
Type.REPLICATOR));

Review Comment:
   `Codec.decode(cursor.getName())`



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