File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
core/redis-kafka-connect/src/main/java/com/redis/kafka/connect/source Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,6 @@ public class RedisKeysSourceTask extends SourceTask {
41
41
42
42
public static final Schema KEY_SCHEMA = Schema .STRING_SCHEMA ;
43
43
44
- /**
45
- * The offsets that have been processed and that are to be acknowledged by the
46
- * reader in {@link RedisKeysSourceTask#commit()}.
47
- */
48
- private final List <Map <String , ?>> sourceOffsets = new ArrayList <>();
49
44
private final ToStructFunction converter = new ToStructFunction ();
50
45
private final Clock clock ;
51
46
@@ -96,17 +91,10 @@ public void start(Map<String, String> props) {
96
91
}
97
92
}
98
93
99
- private void addSourceOffset (Map <String , ?> sourceOffset ) {
100
- sourceOffsets .add (sourceOffset );
101
- }
102
-
103
94
@ Deprecated
104
95
@ Override
105
96
public void commitRecord (SourceRecord sourceRecord ) throws InterruptedException {
106
- Map <String , ?> currentOffset = sourceRecord .sourceOffset ();
107
- if (currentOffset != null ) {
108
- addSourceOffset (currentOffset );
109
- }
97
+ // do nothing - offset tracking not needed for Redis key monitoring
110
98
}
111
99
112
100
@ Override
You can’t perform that action at this time.
0 commit comments