adapter options unification

not needed options deletion
This commit is contained in:
Alexander Strizhakov 2020-09-04 19:05:08 +03:00
commit a83916fdac
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
11 changed files with 47 additions and 63 deletions

View file

@ -124,9 +124,7 @@ defmodule Mix.Tasks.Pleroma.Frontend do
url = String.replace(frontend_info["build_url"], "${ref}", frontend_info["ref"])
with {:ok, %{status: 200, body: zip_body}} <-
Pleroma.HTTP.get(url, [],
adapter: [pool: :media, timeout: 120_000, recv_timeout: 120_000]
) do
Pleroma.HTTP.get(url, [], adapter: [pool: :media, recv_timeout: 120_000]) do
unzip(zip_body, dest)
else
e -> {:error, e}