This commit is contained in:
2021-02-20 13:20:37 +08:00
parent 163c823d25
commit 0b455271e1
5 changed files with 9 additions and 6 deletions
-4
View File
@@ -18,7 +18,6 @@ use Swoole\Timer;
class Connection extends Pool
{
use Timeout;
public array $hasCreate = [];
@@ -179,9 +178,6 @@ class Connection extends Pool
if ($number = Context::getContext('begin_' . $coroutineName, Coroutine::getCid())) {
$number > 0 && $link->beginTransaction();
}
if ($this->creates === 0) {
$this->creates = Timer::tick(1000, [$this, 'Heartbeat_detection']);
}
return $link;
});
}