改名
This commit is contained in:
@@ -235,7 +235,7 @@ class Connection extends Pool
|
||||
if (!empty($charset)) {
|
||||
$link->query('SET NAMES ' . $charset);
|
||||
}
|
||||
$this->success('create db client -> ' . $cds . ':' . $this->hasCreate[$coroutineName] . ':' . $this->size($coroutineName));
|
||||
$this->success('create db client -> ' . $cds . ':' . env('workerId', 0));
|
||||
$this->incr($coroutineName);
|
||||
if ($number = Context::getContext('begin_' . $coroutineName, Coroutine::getCid())) {
|
||||
$number > 0 && $link->beginTransaction();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user