This commit is contained in:
2021-10-28 18:53:36 +08:00
parent 3583fb367c
commit 52fe7e730d
+1 -1
View File
@@ -45,7 +45,7 @@ class ClientPool extends Component
$pool = $config['pool'] ?? ['min' => 1, 'max' => 100];
$clients = $this->getPool()->get($coroutineName, $callback(), $pool['min'] ?? 1);
$clients = $this->getPool()->get($coroutineName, $callback, $pool['min'] ?? 1);
return Context::setContext($coroutineName, $clients);
}