pools[$name])) { return $this->pools[$name]; } if ($this->container instanceof Container) { $pool = $this->container->make(RpcPool::class, ['name' => $name, 'config' => $config]); } else { $pool = new RpcPool($this->container, $name, $config); } return $this->pools[$name] = $pool; } }