def _shrink_down(self):
        resource = self._resource
        # Items to the left are last recently used, so we remove those first.
        with resource.mutex:
            while self.limit > len(resource.queue):
                self.collect_resource(resource.queue.popleft())
dataset/ETHPy150Open celery/kombu/kombu/resource.py/Resource._shrink_down/swapped operands of `>`