Skip to content

Commit

Permalink
fix: Removed duplicate max item count
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Sep 30, 2024
1 parent d434bf1 commit 2589621
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/riot/src/main/java/com/redis/riot/Replicate.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import com.redis.spring.batch.item.redis.reader.KeyComparisonItemReader;
import com.redis.spring.batch.item.redis.reader.KeyEventStatus;
import com.redis.spring.batch.item.redis.reader.KeyNotificationItemReader;
import com.redis.spring.batch.item.redis.reader.RedisScanSizeEstimator;

import io.lettuce.core.codec.ByteArrayCodec;
import picocli.CommandLine.ArgGroup;
Expand Down Expand Up @@ -81,7 +80,6 @@ private Step<KeyValue<byte[], Object>, KeyValue<byte[], Object>> step() {
if (reader.getMode() != ReaderMode.SCAN) {
step.statusMessageSupplier(() -> liveExtraMessage(reader));
}
step.maxItemCountSupplier(RedisScanSizeEstimator.from(reader));
if (logKeys) {
log.info("Adding key logger");
ReplicateWriteLogger<byte[], Object> writeLogger = new ReplicateWriteLogger<>(log, reader.getCodec());
Expand Down

0 comments on commit 2589621

Please sign in to comment.