This commit is contained in:
2021-09-02 14:14:21 +08:00
parent 9add6a51e7
commit 7ae96a0521
+2 -2
View File
@@ -77,11 +77,11 @@ class Pool extends Component
/** /**
* @param $name * @param $name
* @return Channel * @return Channel|SplQueue
* @throws ConfigException * @throws ConfigException
* @throws Exception * @throws Exception
*/ */
private function getChannel($name): Channel private function getChannel($name): Channel|SplQueue
{ {
if (!isset(static::$_connections[$name])) { if (!isset(static::$_connections[$name])) {
$this->newChannel($name); $this->newChannel($name);