Don't create a pika-connecting queue client if we have no RabbitMQ

(imported from commit 680e867abb61644cbc62a4280b4e47b03eb5abe7)
This commit is contained in:
Leo Franchi
2013-03-27 11:06:10 -04:00
parent 6fd4bf38c0
commit 79102044f4

View File

@@ -172,7 +172,7 @@ class TornadoQueueClient(SimpleQueueClient):
if settings.RUNNING_INSIDE_TORNADO and settings.USING_RABBITMQ:
queue_client = TornadoQueueClient()
else:
elif settings.USING_RABBITMQ:
queue_client = SimpleQueueClient()
# We using a simple lock to prevent multiple RabbitMQ messages being