提交 13e82ad3 编写于 作者: N Nikita Koksharov

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

上级 055477d2
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册