Fixed - RedisSentinel.getMaster() method throws NPE #3643

pull/3663/head
Nikita Koksharov 4 years ago
parent 055477d261
commit 13e82ad3cf

@ -250,12 +250,12 @@ public class SentinelRedisNode implements RedisSentinel, RedisSentinelAsync {
@Override
public RFuture<Map<String, String>> getMasterAsync(String masterName) {
return executeAsync(null, null, -1, RedisCommands.SENTINEL_MASTER, masterName);
return executeAsync(null, StringCodec.INSTANCE, -1, RedisCommands.SENTINEL_MASTER, masterName);
}
@Override
public RFuture<Void> failoverAsync(String masterName) {
return executeAsync(null, null, -1, RedisCommands.SENTINEL_FAILOVER, masterName);
return executeAsync(null, StringCodec.INSTANCE, -1, RedisCommands.SENTINEL_FAILOVER, masterName);
}
@Override

Loading…
Cancel
Save