Skip to content

Commit

Permalink
refactor: Renamed MemKeyValueFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Jun 13, 2024
1 parent 1b938f1 commit ffa77b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

import io.lettuce.core.codec.RedisCodec;

public class MemKeyValueFilter<K, T extends KeyValue<K, ?>> implements ItemProcessor<T, T> {
public class KeyValueFilter<K, T extends KeyValue<K, ?>> implements ItemProcessor<T, T> {

private final Function<K, String> keyToString;
private final Logger log;

public MemKeyValueFilter(RedisCodec<K, ?> codec, Logger log) {
public KeyValueFilter(RedisCodec<K, ?> codec, Logger log) {
this.keyToString = BatchUtils.toStringKeyFunction(codec);
this.log = log;
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/riot/src/main/java/com/redis/riot/Replicate.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected boolean isIgnoreStreamMessageId() {
}

private ItemProcessor<KeyValue<byte[], Object>, KeyValue<byte[], Object>> processor() {
return RiotUtils.processor(new MemKeyValueFilter<>(ByteArrayCodec.INSTANCE, log), keyValueProcessor());
return RiotUtils.processor(new KeyValueFilter<>(ByteArrayCodec.INSTANCE, log), keyValueProcessor());
}

private ItemProcessor<KeyValue<byte[], Object>, KeyValue<byte[], Object>> keyValueProcessor() {
Expand Down

0 comments on commit ffa77b8

Please sign in to comment.