This commit is contained in:
2021-01-05 15:06:15 +08:00
parent 8f7c84a456
commit b28ceaf6d8
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -85,8 +85,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 db client has num ' . $this->size($coroutineName) . ', has create ' . $this->_create);
$this->success('create redis client -> ' . $config['host'] . ':' . env('workerId', 0) . ':' . Coroutine::getCid());
$this->success('create client[address: ' . $config['host'] . ', coroutine: ' . Coroutine::getCid() . ', has num: ' . $this->size($coroutineName) . ', has create: ' . $this->_create);
if (!isset($config['read_timeout'])) {
$config['read_timeout'] = 10;
}