Fix
This commit is contained in:
parent
6e9da70594
commit
ca38f369f7
|
|
@ -1,14 +0,0 @@
|
|||
from pika import BlockingConnection, ConnectionParameters
|
||||
|
||||
|
||||
def mess():
|
||||
connection = BlockingConnection(ConnectionParameters('rabbitmq'))
|
||||
channel = connection.channel()
|
||||
|
||||
channel.queue_declare(queue='rating')
|
||||
channel.basic_publish(
|
||||
exchange='',
|
||||
routing_key='rating',
|
||||
body='{news_id:127.0.0.1}'
|
||||
)
|
||||
connection.close()
|
||||
Loading…
Reference in New Issue
Block a user