gun connection pool worker: fix up start_link()
This commit is contained in:
parent
967d6732d4
commit
f7eaf9f763
@ -13,9 +13,9 @@ defmodule Pleroma.Gun.Connections do
|
|||||||
|
|
||||||
defstruct conns: %{}
|
defstruct conns: %{}
|
||||||
|
|
||||||
def start_link(name \\ __MODULE__) do
|
def start_link(_) do
|
||||||
if Application.get_env(:tesla, :adapter) == Tesla.Adapter.Gun do
|
if Application.get_env(:tesla, :adapter) == Tesla.Adapter.Gun do
|
||||||
GenServer.start_link(__MODULE__, [], name: name)
|
GenServer.start_link(__MODULE__, [])
|
||||||
else
|
else
|
||||||
:ignore
|
:ignore
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user