modify plugin name

This commit is contained in:
2022-02-24 11:00:01 +08:00
parent 8e4f345091
commit 698b0ad0ff
2 changed files with 11 additions and 40 deletions
+1 -3
View File
@@ -59,13 +59,11 @@ class Pool extends Component
/**
* @param $name
* @param false $isMaster
* @param int $max
* @throws ConfigException
*/
public function initConnections($name, bool $isMaster = false, int $max = 60)
public function initConnections($name, int $max = 60)
{
$name = $this->name($name, $isMaster);
if (isset(static::$_connections[$name])) {
$value = static::$_connections[$name];
if ($value instanceof Channel || $value instanceof SplQueue) {