Commit 6157f387 by 岳巧源

username

parent f3e1ced6
Showing with 1 additions and 1 deletions
......@@ -263,7 +263,7 @@ class DataUtil:
class Producer:
def __init__(self):
credentials = pika.PlainCredentials(username=config["rabbit_mq_host"], password=config["rabbit_mq_password"])
credentials = pika.PlainCredentials(username=config["rabbit_mq_user"], password=config["rabbit_mq_password"])
self.conn = pika.BlockingConnection(pika.ConnectionParameters(
host=config["rabbit_mq_host"],
port=config["rabbit_mq_port"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment