From 493a58281f8500aa95aa4acfa02c09f8c6173ef5 Mon Sep 17 00:00:00 2001 From: xl Date: Fri, 26 May 2023 09:20:30 +0800 Subject: [PATCH] qqq --- ClientPool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClientPool.php b/ClientPool.php index 281b99e..5f6baf2 100644 --- a/ClientPool.php +++ b/ClientPool.php @@ -87,7 +87,7 @@ class ClientPool extends Component public function getPool($host, $port): Pool { $pool = Kiri::getDi()->get(Pool::class); - $pool->initConnections($host . '::' . $port, 10, function () use ($host, $port) { + $pool->created($host . '::' . $port, 10, function () use ($host, $port) { $client = stream_socket_client("tcp://$host:$port", $errCode, $errMessage, 3); if ($client === false) { throw new Exception('Connect ' . $host . '::' . $port . ' fail');