This commit is contained in:
2021-11-04 23:58:05 +08:00
parent 6b074b7503
commit dbe91352e6
+5 -1
View File
@@ -75,8 +75,12 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
public function register(OnStart $server)
{
$config = Config::get('rpc');
$agent = $this->container->get(Agent::class);
$agent->service->register($config['registry']['config']);
$data = $agent->service->register($config['registry']['config']);
if ($data->getStatusCode() != 200) {
$server->server->shutdown();
}
}