my hart is beating
This commit is contained in:
parent
ab45b0c047
commit
a23b2e537f
@ -40,7 +40,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