Fix typo in PingPong channel reconnect message

pull/974/head
connor rigby 2019-07-26 08:25:45 -07:00 committed by Connor Rigby
parent 405da18d3d
commit 5610f2e9e3
No known key found for this signature in database
GPG Key ID: 29A88B24B70456E0
1 changed files with 2 additions and 2 deletions

View File

@ -71,12 +71,12 @@ defmodule FarmbotExt.AMQP.PingPongChannel do
{:noreply, %{state | conn: conn, chan: chan}}
else
nil ->
Process.send_after(self(), :amqp_connect, 5000)
Process.send_after(self(), :connect_amqp, 5000)
{:noreply, %{state | conn: nil, chan: nil}}
err ->
FarmbotCore.Logger.error(1, "Failed to connect to PingPong channel: #{inspect(err)}")
Process.send_after(self(), :amqp_connect, 2000)
Process.send_after(self(), :connect_amqp, 2000)
{:noreply, %{state | conn: nil, chan: nil}}
end
end