Added routing key
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-08-18 15:53:05 +02:00
parent 5358f0a43f
commit b718ef12d3

View File

@ -99,7 +99,7 @@ def main():
queue_declare_result = channel.queue_declare(queue=str(uuid.uuid4()), exclusive=False)
queue_name = queue_declare_result.method.queue
channel.queue_bind(exchange=Config.PIKA_SAMPLE_CACHE_EXCHANGE, queue=queue_name)
channel.queue_bind(exchange=Config.PIKA_SAMPLE_CACHE_EXCHANGE, routing_key='cache', queue=queue_name)
channel.basic_qos(prefetch_count=1)