You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$sentinel = new \RedisSentinel($host, $port, $params['timeout'], (string) $params['persistent_id'], $params['retry_interval'], $params['read_timeout']);
205
211
206
-
if (!$address = $sentinel->getMasterAddrByName($params['redis_sentinel'])) {
207
-
thrownewInvalidArgumentException(sprintf('Failed to retrieve master information from master name "%s" and address "%s:%d".', $params['redis_sentinel'], $host, $port));
212
+
if ($address = $sentinel->getMasterAddrByName($params['redis_sentinel'])) {
213
+
[$host, $port] = $address;
208
214
}
215
+
} while (++$hostIndex < \count($hosts) && !$address);
209
216
210
-
[$host, $port] = $address;
217
+
if (isset($params['redis_sentinel']) && !$address) {
218
+
thrownewInvalidArgumentException(sprintf('Failed to retrieve master information from sentinel "%s" and dsn "%s".', $params['redis_sentinel'], $dsn));
0 commit comments