HTTP: Implement max request limits

This commit is contained in:
rinpatch 2020-05-17 22:16:02 +03:00
commit 4128e3a84a
6 changed files with 49 additions and 11 deletions

View file

@ -244,7 +244,8 @@ defmodule Pleroma.Application do
end
defp http_children(Tesla.Adapter.Gun, _) do
Pleroma.Gun.ConnectionPool.children()
Pleroma.Gun.ConnectionPool.children() ++
[{Task, &Pleroma.HTTP.AdapterHelper.Gun.limiter_setup/0}]
end
defp http_children(_, _), do: []