This commit is contained in:
2021-12-02 16:13:57 +08:00
parent a66de3f016
commit 18d2ce66e6
4 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ class ClientPool extends Component
*/
public function get($config, callable $callback): mixed
{
$coroutineName = $this->name(self::POOL_NAME . '::' . $config['ServiceAddress'] . '::' . $config['ServicePort'], true);
$coroutineName = $this->name(self::POOL_NAME . '::' . $config['Address'] . '::' . $config['Port'], true);
$pool = $config['pool'] ?? ['min' => 1, 'max' => 100];