改名
This commit is contained in:
@@ -157,7 +157,7 @@ class Connection extends Pool
|
|||||||
}
|
}
|
||||||
[$time, $connections] = $this->get($coroutineName);
|
[$time, $connections] = $this->get($coroutineName);
|
||||||
if (!($connections instanceof PDO)) {
|
if (!($connections instanceof PDO)) {
|
||||||
throw new Exception('Database exception.');
|
return $this->newClient($config, $coroutineName);
|
||||||
}
|
}
|
||||||
return Context::setContext($coroutineName, $connections);
|
return Context::setContext($coroutineName, $connections);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class Redis extends Pool
|
|||||||
}
|
}
|
||||||
[$time, $clients] = $this->get($coroutineName);
|
[$time, $clients] = $this->get($coroutineName);
|
||||||
if ($clients === null) {
|
if ($clients === null) {
|
||||||
throw new Exception('Redis exception.');
|
return $this->newClient($config, $coroutineName);
|
||||||
}
|
}
|
||||||
return Context::setContext($coroutineName, $clients);
|
return Context::setContext($coroutineName, $clients);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user