From 079573ce53558aeb569d49e31bafeedd56bb419e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 28 Oct 2021 18:57:07 +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/ClientPool.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ClientPool.php b/src/ClientPool.php index 892505e..3cd62eb 100644 --- a/src/ClientPool.php +++ b/src/ClientPool.php @@ -45,8 +45,7 @@ class ClientPool extends Component $pool = $config['pool'] ?? ['min' => 1, 'max' => 100]; - $clients = $this->getPool()->get($coroutineName, $callback, $pool['min'] ?? 1); - return Context::setContext($coroutineName, $clients); + return $this->getPool()->get($coroutineName, $callback, $pool['min'] ?? 1); }