This commit is contained in:
2021-01-04 18:45:08 +08:00
parent 22b34ac0fc
commit 29fe4f59b2
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class Redis extends Pool
if (empty($config['auth']) || !$redis->auth($config['auth'])) {
throw new RedisConnectException(sprintf('Redis Error: %s, Host %s, Auth %s', $redis->getLastError(), $config['host'], $config['auth']));
}
$this->success('create redis client -> ' . $config['host'] . ':' . $this->size($coroutineName));
$this->success('create redis client -> ' . $config['host'] . ':' . env('workerId', 0));
if (!isset($config['read_timeout'])) {
$config['read_timeout'] = 10;
}