Skip to content

Commit

Permalink
refactor: Removed step name constant prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Jun 13, 2024
1 parent e259191 commit 84115f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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 @@ -31,7 +31,7 @@ public enum CompareMode {
FULL, QUICK, NONE
}

public static final String REPLICATE_STEP_NAME = "replicate";
public static final String STEP_NAME = "replicate";
public static final CompareMode DEFAULT_COMPARE_MODE = CompareMode.QUICK;

private static final String QUEUE_MESSAGE = " | capacity: %,d | dropped: %,d";
Expand Down Expand Up @@ -100,7 +100,7 @@ private ItemProcessor<KeyValue<byte[], Object>, KeyValue<byte[], Object>> keyVal
private Step<KeyValue<byte[], Object>, KeyValue<byte[], Object>> replicateStep() {
RedisItemReader<byte[], byte[], Object> reader = configure(sourceReader());
RedisItemWriter<byte[], byte[], KeyValue<byte[], Object>> writer = configure(writer());
Step<KeyValue<byte[], Object>, KeyValue<byte[], Object>> step = new Step<>(REPLICATE_STEP_NAME, reader, writer);
Step<KeyValue<byte[], Object>, KeyValue<byte[], Object>> step = new Step<>(STEP_NAME, reader, writer);
step.processor(processor());
step.taskName(taskName(reader));
configureExportStep(step);
Expand Down

0 comments on commit 84115f2

Please sign in to comment.