use direct exchange
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-10-24 00:28:25 +02:00
parent 29eae6bef0
commit 5b736b2844

View File

@ -101,7 +101,7 @@ class SampleResource(Resource):
socket_timeout=5)) socket_timeout=5))
channel = connection.channel() channel = connection.channel()
channel.exchange_declare(exchange=current_app.config['EXCHANGE_NAME'], channel.exchange_declare(exchange=current_app.config['EXCHANGE_NAME'],
exchange_type='fanout') exchange_type='direct')
channel.basic_publish(exchange=current_app.config['EXCHANGE_NAME'], channel.basic_publish(exchange=current_app.config['EXCHANGE_NAME'],
routing_key='feature', routing_key='feature',
body=json.dumps({'tag': generated_tag}).encode('UTF-8')) body=json.dumps({'tag': generated_tag}).encode('UTF-8'))