Skip to content

Commit

Permalink
Method renamed to broadcast() (#3227)
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 authored Dec 7, 2022
1 parent 6092720 commit 0d1c889
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/redis/clients/jedis/UnifiedJedis.java
Original file line number Diff line number Diff line change
Expand Up @@ -4534,7 +4534,7 @@ public Map<String, Object> graphConfigGet(String configName) {
}
// RedisGraph commands

public JedisBroadcast broadcasted() {
public JedisBroadcast broadcast() {
return new JedisBroadcast(this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ public void onUnsubscribe(String channel, int subscribedChannels) {

@Test
public void broadcastRawPing() {
Map<?, Supplier<String>> replies = cluster.broadcasted().broadcastCommand(
Map<?, Supplier<String>> replies = cluster.broadcast().broadcastCommand(
new CommandObject<>(new CommandArguments(Protocol.Command.PING), BuilderFactory.STRING));
assertEquals(3, replies.size());
replies.values().forEach(reply -> assertEquals("PONG", reply.get()));
}

@Test
public void broadcastPing() {
Map<?, Supplier<String>> replies = cluster.broadcasted().ping();
Map<?, Supplier<String>> replies = cluster.broadcast().ping();
assertEquals(3, replies.size());
replies.values().forEach(reply -> assertEquals("PONG", reply.get()));
}
Expand All @@ -133,7 +133,7 @@ public void broadcastFlushAll() {
assertNull(cluster.get("foo"));
assertEquals("OK", cluster.set("foo", "bar"));
assertEquals("bar", cluster.get("foo"));
cluster.broadcasted().flushAll();
cluster.broadcast().flushAll();
assertNull(cluster.get("foo"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ public void list() {

@Test
public void broadcast() {
Map<?, Supplier<String>> reply = client.broadcasted().ftCreate(index, TextField.of("t"));
Map<?, Supplier<String>> reply = client.broadcast().ftCreate(index, TextField.of("t"));
assertEquals(1, reply.size());
assertOK(reply.values().stream().findFirst().get().get());
}
Expand Down

0 comments on commit 0d1c889

Please sign in to comment.