refactoring

pull/1461/head
Nikita 7 years ago
parent fe98d0aa14
commit 6e9f8d667e

@ -502,6 +502,9 @@ public class MasterSlaveEntry {
}
public RFuture<RedisConnection> connectionReadOp(RedisCommand<?> command, RedisClient client) {
if (config.getReadMode() == ReadMode.MASTER) {
return connectionWriteOp(command);
}
return slaveBalancer.getConnection(command, client);
}

Loading…
Cancel
Save