From 09bda11e1b5cb358895493ad046572fa72d3da7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 20 Oct 2021 14:42:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Mysql/PDO.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index 102aca9..10f6408 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -27,11 +27,6 @@ class PDO implements StopHeartbeatCheck private int $_transaction = 0; - /** - * @var EventProvider - */ - private EventProvider $eventProvider; - private int $_timer = -1; private int $_last = 0; @@ -55,7 +50,6 @@ class PDO implements StopHeartbeatCheck public function init() { $this->heartbeat_check(); - $this->eventProvider->on(OnWorkerExit::class, [$this, 'stopHeartbeatCheck']); }