改名
This commit is contained in:
@@ -28,11 +28,6 @@ class Redis implements StopHeartbeatCheck
|
||||
private int $_transaction = 0;
|
||||
|
||||
|
||||
/**
|
||||
* @var EventProvider
|
||||
*/
|
||||
private EventProvider $eventProvider;
|
||||
|
||||
private int $_timer = -1;
|
||||
|
||||
private int $_last = 0;
|
||||
@@ -51,14 +46,12 @@ class Redis implements StopHeartbeatCheck
|
||||
public string $auth = '', public string $prefix = '', public int $timeout = 30,
|
||||
public int $read_timeout = 30)
|
||||
{
|
||||
$this->eventProvider = Kiri::getDi()->get(EventProvider::class);
|
||||
}
|
||||
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->heartbeat_check();
|
||||
$this->eventProvider->on(OnWorkerExit::class, [$this, 'stopHeartbeatCheck']);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user