This commit is contained in:
2023-04-04 14:38:27 +08:00
parent 5064e5d683
commit a25634f07a
+2 -2
View File
@@ -59,6 +59,8 @@ class PDO implements StopHeartbeatCheck
$this->read_timeout = $config['read_timeout'] ?? 10;
$this->charset = $config['charset'] ?? 'utf8mb4';
$this->attributes = $config['attributes'] ?? [];
$this->group = new WaitGroup();
}
@@ -71,8 +73,6 @@ class PDO implements StopHeartbeatCheck
$eventProvider = Kiri::getDi()->get(EventProvider::class);
$eventProvider->on(OnWorkerExit::class, [$this, 'onWorkerExit']);
$this->_timerId = Timer::tick(60000, [$this, 'check']);
$this->group = new WaitGroup();
}