This commit is contained in:
xl
2023-06-12 16:36:03 +08:00
parent b5d5826fa9
commit 14507e8b01
-14
View File
@@ -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
*/