gun connection pool worker: fix up start_link()

This commit is contained in:
Ariadne Conill 2019-08-18 23:14:45 +00:00
parent 967d6732d4
commit f7eaf9f763

View File

@ -13,9 +13,9 @@ defmodule Pleroma.Gun.Connections do
defstruct conns: %{}
def start_link(name \\ __MODULE__) do
def start_link(_) do
if Application.get_env(:tesla, :adapter) == Tesla.Adapter.Gun do
GenServer.start_link(__MODULE__, [], name: name)
GenServer.start_link(__MODULE__, [])
else
:ignore
end