This commit is contained in:
2021-09-02 14:13:06 +08:00
parent a8315038b9
commit 9add6a51e7
+1 -1
View File
@@ -98,7 +98,7 @@ class Pool extends Component
*/
private function newChannel($name, $max = null)
{
if ($max !== null) {
if ($max == null) {
$max = Config::get('databases.pool.max', 10);
}
if (Coroutine::getCid() === -1) {