This commit is contained in:
2021-10-29 11:12:38 +08:00
parent ca748aa320
commit 1cf0a83032
+1 -1
View File
@@ -69,7 +69,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
{
$config = Config::get('rpc');
$agent = Kiri::getDi()->get(Agent::class, [], ['host' => '127.0.0.1', 'port' => 9500]);
$agent = Kiri::getDi()->get(Agent::class);
$data = $agent->service->register([
"ID" => $config['name'] ?? 'test-name',
"Name" => "redis",