From ca748aa320a82436fff0ca76de3da46b5e346a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 29 Oct 2021 11:10:33 +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 bc6dbeb..ee52105 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); + $agent = Kiri::getDi()->get(Agent::class, [], ['host' => '127.0.0.1', 'port' => 9500]); $data = $agent->service->register([ "ID" => $config['name'] ?? 'test-name', "Name" => "redis",