passing adapter options directly without adapter key

This commit is contained in:
Alexander Strizhakov 2020-09-07 16:57:42 +03:00
commit 696bf09433
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
11 changed files with 36 additions and 35 deletions

View file

@ -124,7 +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, recv_timeout: 120_000]) do
Pleroma.HTTP.get(url, [], pool: :media, recv_timeout: 120_000) do
unzip(zip_body, dest)
else
e -> {:error, e}