use direct exchange
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2020-10-24 00:28:25 +02:00
parent 29eae6bef0
commit 5b736b2844
1 changed files with 1 additions and 1 deletions

View File

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