This commit is contained in:
as2252258@163.com
2021-07-20 01:40:55 +08:00
parent b0f2b1077e
commit d5cc4c2d64
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ class Server extends HttpService
*/ */
public function start(): string public function start(): string
{ {
$this->manager->initBaseServer(Config::get('servers', [], true)); $this->manager->initBaseServer(Config::get('server', [], true));
$rpcService = Config::get('rpc', []); $rpcService = Config::get('rpc', []);
if (!empty($rpcService)) { if (!empty($rpcService)) {
+1 -1
View File
@@ -88,7 +88,7 @@ class ServerManager extends Abstracts\Server
public function initBaseServer($configs): void public function initBaseServer($configs): void
{ {
$context = ServerManager::getContext(); $context = ServerManager::getContext();
foreach ($this->sortService($configs['server']['ports']) as $config) { foreach ($this->sortService($configs['ports']) as $config) {
$this->startListenerHandler($context, $config); $this->startListenerHandler($context, $config);
} }
$this->addServerEventCallback($this->getSystemEvents($configs)); $this->addServerEventCallback($this->getSystemEvents($configs));