WebSub fix test

This commit is contained in:
Maksim Pechnikov 2018-12-02 16:58:38 +03:00
commit ec34de0c1f
3 changed files with 22 additions and 13 deletions

View file

@ -1,5 +1,6 @@
defmodule Pleroma.HTTP.Connection do
@hackney_options [pool: :default]
@adapter Application.get_env(:tesla, :adapter)
@doc """
Configure a client connection
@ -10,7 +11,7 @@ defmodule Pleroma.HTTP.Connection do
"""
@spec new(Keyword.t()) :: Tesla.Env.client()
def new(opts \\ []) do
Tesla.client([], {Tesla.Adapter.Hackney, hackney_options(opts)})
Tesla.client([], {@adapter, hackney_options(opts)})
end
# fetch Hackney options