From 1cf0a83032a71ac0927d8de56301c202d49b4dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 29 Oct 2021 11:12:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RpcJsonp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RpcJsonp.php b/src/RpcJsonp.php index ee52105..bc6dbeb 100644 --- a/src/RpcJsonp.php +++ b/src/RpcJsonp.php @@ -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",