private function releaseToChannel(ConnectionInterface $connection)
    {
        $stats     = $this->channel->stats();
        $maxActive = $this->poolConfig->getMaxActive();
        if ($stats['queue_num'] < $maxActive) {
            $this->channel->push($connection);
        }
    }
private function releaseToChannel(ConnectionInterface $connection)
    {
        $stats     = $this->channel->stats();
        $maxActive = $this->poolConfig->getMaxActive();
        if ($stats['queue_num'] < $maxActive) {
            $this->channel->push($connection);
        }
    }
private function releaseToChannel ( ConnectionInterface $ connection ) { $ stats = $ this -> channel -> stats ( ) ; $ maxActive = $ this -> poolConfig -> getMaxActive ( ) ; if ( $ stats [ 'queue_num' ] < $ maxActive ) { $ this -> channel -> push ( $ connection ) ; } }
Release to channel

@param $connection
Release to channel