qqq
This commit is contained in:
@@ -44,7 +44,6 @@ class AsyncServer implements ServerInterface
|
||||
public function initCoreServers(array $service, int $daemon = 0): void
|
||||
{
|
||||
$this->listener($service, $daemon);
|
||||
$this->initRpcListen();
|
||||
$this->initProcess();
|
||||
$this->onSignal();
|
||||
}
|
||||
@@ -68,19 +67,6 @@ class AsyncServer implements ServerInterface
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* @throws Exception
|
||||
*/
|
||||
private function initRpcListen(): void
|
||||
{
|
||||
$rpcService = \config('rpc', []);
|
||||
if (!empty($rpcService)) {
|
||||
$this->addListener(instance(SConfig::class, [], $rpcService));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user