This commit is contained in:
2021-07-05 16:57:00 +08:00
parent 3c3ba68aba
commit be9c469a0f
+1 -1
View File
@@ -182,10 +182,10 @@ class ClientsPool extends Component
{
if (!isset(static::$_connections[$name])) {
static::$_connections[$name] = new Channel(Config::get('databases.pool.max', 10));
}
if ($this->creates === -1) {
$this->creates = Timer::tick(3000, [$this, 'Heartbeat_detection']);
}
}
return static::$_connections[$name];
}