This commit is contained in:
2020-10-30 01:46:19 +08:00
parent e36d63d144
commit 73a2f691ce
2 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class Redis extends Pool
private function createConnect(array $config, string $coroutineName)
{
$redis = new SRedis();
if (!$redis->connect($config['host'], $config['port'], $config['timeout'])) {
if (!$redis->connect($config['host'], (int)$config['port'], $config['timeout'])) {
throw new RedisConnectException(sprintf('The Redis Connect %s::%d Fail.', $config['host'], $config['port']));
}
if (empty($config['auth']) || !$redis->auth($config['auth'])) {