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); }