Compare commits
2 Commits
87b6f7b986
...
a97d081bff
Author | SHA1 | Date | |
---|---|---|---|
a97d081bff | |||
a23b2e537f |
@ -42,7 +42,7 @@ def setup_rabbit(mqtt_: MQTT) -> None:
|
||||
credentials = pika.PlainCredentials(config.RABBIT_USERNAME, config.RABBIT_PASSWORD)
|
||||
connection = pika.BlockingConnection(pika.ConnectionParameters(host=config.RABBIT_HOSTNAME,
|
||||
credentials=credentials,
|
||||
heartbeat=0,
|
||||
heartbeat=10,
|
||||
socket_timeout=5))
|
||||
channel = connection.channel()
|
||||
channel.exchange_declare(exchange=config.RABBIT_EXCHANGE,
|
||||
|
Loading…
Reference in New Issue
Block a user