eee
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Kiri\Server\Abstracts;
|
namespace Kiri\Server\Abstracts;
|
||||||
|
|
||||||
|
use Kiri\Error\StdoutLogger;
|
||||||
use Kiri\Server\ServerInterface;
|
use Kiri\Server\ServerInterface;
|
||||||
use Swoole\Process;
|
use Swoole\Process;
|
||||||
|
|
||||||
@@ -30,6 +31,8 @@ trait ReloadWorkers
|
|||||||
private function reloadByServerInstance(): bool
|
private function reloadByServerInstance(): bool
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
di(StdoutLogger::class)->println('[file-build] Reload worker.');
|
||||||
|
|
||||||
$server = di(ServerInterface::class) ;
|
$server = di(ServerInterface::class) ;
|
||||||
return $server->reload() !== false;
|
return $server->reload() !== false;
|
||||||
} catch (\Throwable) {
|
} catch (\Throwable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user