变更
This commit is contained in:
@@ -7,12 +7,7 @@ namespace Kiri\Pool;
|
||||
use Database\Mysql\PDO;
|
||||
use Exception;
|
||||
use Kiri\Abstracts\Component;
|
||||
use Kiri\Abstracts\Config;
|
||||
use Kiri\Annotation\Inject;
|
||||
use Kiri\Di\ContainerInterface;
|
||||
use Kiri\Exception\ConfigException;
|
||||
use Kiri\Server\Abstracts\StatusEnum;
|
||||
use Kiri\Server\WorkerStatus;
|
||||
|
||||
|
||||
/**
|
||||
@@ -25,12 +20,6 @@ class Pool extends Component
|
||||
/** @var array<PoolItem> */
|
||||
private array $_connections = [];
|
||||
|
||||
/**
|
||||
* @var WorkerStatus
|
||||
*/
|
||||
#[Inject(WorkerStatus::class)]
|
||||
public WorkerStatus $status;
|
||||
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Pool;
|
||||
|
||||
use Closure;
|
||||
use Kiri\Annotation\Inject;
|
||||
use Kiri\Di\Context;
|
||||
use Swoole\Coroutine\Channel;
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Pool;
|
||||
|
||||
use Kiri\Di\Context;
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
namespace Kiri\Pool;
|
||||
|
||||
interface QueueInterface
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Pool;
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Pool;
|
||||
|
||||
interface StopHeartbeatCheck
|
||||
|
||||
Reference in New Issue
Block a user