Skip to content

Commit

Permalink
[Gradle Release Plugin] - new version commit: '1.10.4'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux authored and Julien Ruaux committed Mar 24, 2020
1 parent e184669 commit 732689f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.10.3
version=1.10.4
6 changes: 3 additions & 3 deletions src/main/java/com/redislabs/riot/cli/ReplicateCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public class ReplicateCommand extends ExportCommand<KeyDump, KeyDump> {
private int queueSize = 10000;
@Option(names = "--syncer-threads", description = "Number of value reader threads (default: ${DEFAULT-VALUE})", paramLabel = "<int>")
private int threads = 1;
@Option(names = "--listener", description = "Enable keyspace notification listener")
private boolean listener;
@Option(names = "--listen", description = "Enable keyspace notification listener")
private boolean listen;

public String getChannel(RedisOptions redisOptions) {
return channel.replace(DATABASE_TOKEN, String.valueOf(redisOptions.getDatabase()));
Expand All @@ -57,7 +57,7 @@ protected RedisItemReader<KeyDump> reader() throws Exception {
protected Transfer<KeyDump, KeyDump> transfer(ItemReader<KeyDump> reader, ItemProcessor<KeyDump, KeyDump> processor,
ItemWriter<KeyDump> writer) {
Transfer<KeyDump, KeyDump> transfer = super.transfer(reader, processor, writer);
if (listener) {
if (listen) {
RedisOptions source = redisOptions();
KeyspaceNotificationsIterator iterator = KeyspaceNotificationsIterator.builder()
.connection(source.statefulRedisPubSubConnection()).channel(getChannel(source))
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/commands/replicate-live.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$ riot -s localhost:16379 replicate -s localhost:16380 --listener
$ riot -s localhost:16379 replicate -s localhost:16380 --listen

0 comments on commit 732689f

Please sign in to comment.