Connection pool: Fix race conditions in limit enforcement

Fixes race conditions in limit enforcement by putting worker processes
in a DynamicSupervisor
This commit is contained in:
rinpatch 2020-05-06 23:14:24 +03:00
commit ec9d0d146b
4 changed files with 118 additions and 92 deletions

View file

@ -243,7 +243,7 @@ defmodule Pleroma.Application do
end
defp http_children(Tesla.Adapter.Gun, _) do
[{Registry, keys: :unique, name: Pleroma.Gun.ConnectionPool}]
Pleroma.Gun.ConnectionPool.children()
end
defp http_children(_, _), do: []