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