def return_channel(self, channel):
        # if using pooling
        if self.pool_recycle > -1:
            self.__DEBUG("Returning Pika channel to pool %s" % channel)
            if channel.is_open:
                self.pool_queue.put(channel)
            else:
                self.return_broken_channel(channel)

        #if not using pooling then just destroy the channel
        else:
            self.__destroy_channel(channel)
Return a channel
dataset/ETHPy150Open WeatherDecisionTechnologies/flask-pika/flask_pika.py/Pika.return_channel