black
This commit is contained in:
parent
2bc520c849
commit
e3eff12ccd
@ -45,7 +45,12 @@ def get_connection():
|
|||||||
|
|
||||||
credentials = pika.PlainCredentials(username=CONFIG.rabbitmq.user, password=CONFIG.rabbitmq.password)
|
credentials = pika.PlainCredentials(username=CONFIG.rabbitmq.user, password=CONFIG.rabbitmq.password)
|
||||||
|
|
||||||
kwargs = {"host": CONFIG.rabbitmq.host, "port": CONFIG.rabbitmq.port, "credentials": credentials, "heartbeat": CONFIG.rabbitmq.heartbeat}
|
kwargs = {
|
||||||
|
"host": CONFIG.rabbitmq.host,
|
||||||
|
"port": CONFIG.rabbitmq.port,
|
||||||
|
"credentials": credentials,
|
||||||
|
"heartbeat": CONFIG.rabbitmq.heartbeat,
|
||||||
|
}
|
||||||
|
|
||||||
parameters = pika.ConnectionParameters(**kwargs)
|
parameters = pika.ConnectionParameters(**kwargs)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user