Skip to content

Commit

Permalink
[ISSUE apache#8623] Fix maven-compile (macos-latest, JDK-8) ci run fa…
Browse files Browse the repository at this point in the history
…ilure
  • Loading branch information
yx9o committed Sep 2, 2024
1 parent 720c87e commit 81f6358
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 81f6358

Please sign in to comment.