This commit is contained in:
2020-09-06 05:41:50 +08:00
parent eef7202a7b
commit 65d9c55ca4
+1 -1
View File
@@ -189,7 +189,7 @@ class Connection extends Pool
public function getConnection(array $config, $isMaster = false)
{
if ($this->creates === 0) {
Timer::tick(10000, [$this, 'Heartbeat_detection']);
$this->creates = Timer::tick(10000, [$this, 'Heartbeat_detection']);
}
[$coroutineId, $coroutineName] = $this->getIndex($config['cds'], $isMaster);
if (!isset($this->hasCreate[$coroutineName])) {