diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-09-07 16:57:42 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-09-07 19:59:17 +0300 |
commit | 696bf09433aa7f33cf580c71cb7f1f3367d4c124 (patch) | |
tree | b5d51e9819ce3964916a2ce8aee78df6a50cbeee /lib/pleroma/http/tzdata.ex | |
parent | 8a3d43044a06488545490a89e29c8349d914f164 (diff) | |
download | pleroma-696bf09433aa7f33cf580c71cb7f1f3367d4c124.tar.gz |
passing adapter options directly without adapter key
Diffstat (limited to 'lib/pleroma/http/tzdata.ex')
-rw-r--r-- | lib/pleroma/http/tzdata.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/http/tzdata.ex b/lib/pleroma/http/tzdata.ex index 4539ac359..09cfdadf7 100644 --- a/lib/pleroma/http/tzdata.ex +++ b/lib/pleroma/http/tzdata.ex @@ -11,7 +11,7 @@ defmodule Pleroma.HTTP.Tzdata do @impl true def get(url, headers, options) do - options = Keyword.put_new(options, :adapter, pool: :default) + options = Keyword.put_new(options, :pool, :default) with {:ok, %Tesla.Env{} = env} <- HTTP.get(url, headers, options) do {:ok, {env.status, env.headers, env.body}} @@ -20,7 +20,7 @@ defmodule Pleroma.HTTP.Tzdata do @impl true def head(url, headers, options) do - options = Keyword.put_new(options, :adapter, pool: :default) + options = Keyword.put_new(options, :pool, :default) with {:ok, %Tesla.Env{} = env} <- HTTP.head(url, headers, options) do {:ok, {env.status, env.headers}} |