This commit is contained in:
2020-09-15 17:09:25 +08:00
parent 33c96852b9
commit 2522171db3
+3 -3
View File
@@ -207,9 +207,9 @@ class Connection extends Pool
*/
public function getConnection(array $config, $isMaster = false)
{
if ($this->creates === 0) {
$this->creates = Timer::tick(10000, [$this, 'Heartbeat_detection']);
}
// if ($this->creates === 0) {
// $this->creates = Timer::tick(10000, [$this, 'Heartbeat_detection']);
// }
[$coroutineId, $coroutineName] = $this->getIndex($config['cds'], $isMaster);
if (!isset($this->hasCreate[$coroutineName])) {
$this->hasCreate[$coroutineName] = 0;