This commit is contained in:
parent
29eae6bef0
commit
5b736b2844
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user