HTTP: Implement max request limits
This commit is contained in:
parent
94c8f3cfaf
commit
4128e3a84a
6 changed files with 49 additions and 11 deletions
|
|
@ -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: []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue