Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
qianye1001 committed Sep 3, 2024
1 parent 3c3945c commit f8c12d3
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.rocketmq.store.dledger;

import com.google.common.util.concurrent.RateLimiter;
import io.openmessaging.storage.dledger.DLedgerConfig;
import io.openmessaging.storage.dledger.DLedgerServer;
import java.io.File;
Expand Down Expand Up @@ -123,13 +122,7 @@ protected DefaultMessageStore createMessageStore(String base, boolean createAbor
}

protected void doPutMessages(MessageStore messageStore, String topic, int queueId, int num, long beginLogicsOffset) throws UnknownHostException {
RateLimiter rateLimiter = RateLimiter.create(100);
MessageStoreConfig storeConfig = messageStore.getMessageStoreConfig();
boolean limitAppendRate = storeConfig.isEnableDLegerCommitLog();
for (int i = 0; i < num; i++) {
if (limitAppendRate) {
rateLimiter.acquire();
}
MessageExtBrokerInner msgInner = buildMessage();
msgInner.setTopic(topic);
msgInner.setQueueId(queueId);
Expand Down

0 comments on commit f8c12d3

Please sign in to comment.