From 1abe89f0b487150ae8ab6671fb3e82a9ca3c877f Mon Sep 17 00:00:00 2001 From: Paul Swartz Date: Thu, 5 Oct 2023 10:48:15 -0400 Subject: [PATCH] fix(state_mediator/mqtt): reconnect more quickly --- apps/state_mediator/lib/state_mediator/mqtt_mediator.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/state_mediator/lib/state_mediator/mqtt_mediator.ex b/apps/state_mediator/lib/state_mediator/mqtt_mediator.ex index 702aa807..eeaec3bb 100644 --- a/apps/state_mediator/lib/state_mediator/mqtt_mediator.ex +++ b/apps/state_mediator/lib/state_mediator/mqtt_mediator.ex @@ -69,6 +69,7 @@ defmodule StateMediator.MqttMediator do EmqttFailover.Connection.start_link( client_id: EmqttFailover.client_id(prefix: "api"), configs: state.configs, + backoff: {1_000, 60_000, :jitter}, handler: {__MODULE__.Handler, module: state.module, topic: state.topic, timeout: state.sync_timeout}