Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-20 19:04:16 +08:00
parent 862acf1db1
commit b557f15a98
7 changed files with 15 additions and 17 deletions
-7
View File
@@ -45,8 +45,6 @@ class Redis implements StopHeartbeatCheck
private int $_last = 0;
private EventProvider $eventProvider;
/**
* @param array $config
@@ -67,9 +65,6 @@ class Redis implements StopHeartbeatCheck
public function init()
{
$this->heartbeat_check();
$this->eventProvider = Kiri::getDi()->get(EventProvider::class);
$this->eventProvider->on(OnWorkerExit::class, [$this, 'onWorkerExit']);
}
@@ -110,8 +105,6 @@ class Redis implements StopHeartbeatCheck
if (time() - $this->_last > intval($this->pool['tick'] ?? 60)) {
$this->stopHeartbeatCheck();
$this->eventProvider->off(OnWorkerExit::class, [$this, 'stopHeartbeatCheck']);
$this->pdo = null;
}
} catch (\Throwable $throwable) {