ReverseProxy: create Client.Wrapper to call client from config

Speeds up recompilation by reducing compile-time cycles
This commit is contained in:
Alex Gleason 2021-06-02 16:34:32 -05:00
commit 1c3fe43d23
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 30 additions and 19 deletions

View file

@ -411,7 +411,7 @@ defmodule Pleroma.ReverseProxy do
{:ok, :no_duration_limit, :no_duration_limit}
end
defp client, do: Pleroma.ReverseProxy.Client
defp client, do: Pleroma.ReverseProxy.Client.Wrapper
defp track_failed_url(url, error, opts) do
ttl =