method added

pull/4226/head
Nikita Koksharov 3 years ago
parent aec11bdcd0
commit 67dcc53af6

@ -311,6 +311,10 @@ public class MasterSlaveEntry {
return addSlave(address, uri, false, NodeType.SLAVE, sslHostname);
}
public CompletableFuture<Void> addSlave(RedisClient client) {
return addSlave(client, false, NodeType.SLAVE);
}
private CompletableFuture<Void> addSlave(RedisClient client, boolean freezed, NodeType nodeType) {
CompletableFuture<InetSocketAddress> addrFuture = client.resolveAddr();
return addrFuture.thenCompose(res -> {

Loading…
Cancel
Save