});
if (redisURI.getSentinels().isEmpty() && LettuceStrings.isNotEmpty(redisURI.getHost())) {
sentinelBootstrap.option(ChannelOption.CONNECT_TIMEOUT_MILLIS,
(int) redisURI.getUnit().toMillis(redisURI.getTimeout()));
ChannelFuture connect = sentinelBootstrap.connect(redisURI.getResolvedAddress());
logger.debug("Connecting to Sentinel, address: " + redisURI.getResolvedAddress());
try {
connect.sync();
} catch (InterruptedException e) {
throw new RedisException(e.getMessage(), e);