my hart is beating

This commit is contained in:
Torma Kristóf 2020-10-20 01:12:56 +02:00
parent ab45b0c047
commit a23b2e537f
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -40,7 +40,7 @@ def setup_rabbit(mqtt_: MQTT) -> None:
credentials = pika.PlainCredentials(config.RABBIT_USERNAME, config.RABBIT_PASSWORD) credentials = pika.PlainCredentials(config.RABBIT_USERNAME, config.RABBIT_PASSWORD)
connection = pika.BlockingConnection(pika.ConnectionParameters(host=config.RABBIT_HOSTNAME, connection = pika.BlockingConnection(pika.ConnectionParameters(host=config.RABBIT_HOSTNAME,
credentials=credentials, credentials=credentials,
heartbeat=0, heartbeat=10,
socket_timeout=5)) socket_timeout=5))
channel = connection.channel() channel = connection.channel()
channel.exchange_declare(exchange=config.RABBIT_EXCHANGE, channel.exchange_declare(exchange=config.RABBIT_EXCHANGE,