This commit is contained in:
2023-04-16 01:45:34 +08:00
parent 46baac8bbd
commit 11c21f01a2
35 changed files with 36 additions and 1377 deletions
-11
View File
@@ -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 -1
View File
@@ -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;
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Kiri\Pool;
use Kiri\Di\Context;
+3
View File
@@ -1,5 +1,8 @@
<?php
declare(strict_types=1);
namespace Kiri\Pool;
interface QueueInterface
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Kiri\Pool;
+2
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Kiri\Pool;
interface StopHeartbeatCheck