Fix NervesHubChannel compile warning

pull/974/head
Connor Rigby 2019-06-05 14:21:01 -07:00
parent b4aa042ea4
commit 2105fb8a70
No known key found for this signature in database
GPG Key ID: 29A88B24B70456E0
1 changed files with 4 additions and 1 deletions

View File

@ -140,7 +140,10 @@ defmodule FarmbotExt.AMQP.ConnectionWorker do
{:reply, conn, state}
end
defp open_connection(token, email, bot, mqtt_server, vhost) do
# Public function because the NervesHub channel requires it.
# TODO(Connor) - Fix that
@doc false
def open_connection(token, email, bot, mqtt_server, vhost) do
Logger.info("Opening new AMQP connection.")
# Make sure the types of these fields are correct. If they are not