Skip to content

Commit

Permalink
fix(state_mediator/mqtt): reconnect more quickly
Browse files Browse the repository at this point in the history
  • Loading branch information
paulswartz committed Oct 5, 2023
1 parent b630edf commit 1abe89f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/state_mediator/lib/state_mediator/mqtt_mediator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 1abe89f

Please sign in to comment.