Compare commits

...

2 Commits

Author SHA1 Message Date
a97d081bff
Merge branch 'master' of ssh://cloud.tormakristof.eu:2222/birbnetes/guard-service into master
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-20 01:13:08 +02:00
a23b2e537f
my hart is beating 2020-10-20 01:12:56 +02:00

View File

@ -42,7 +42,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,