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:
parent
d08b157699
commit
ec9d0d146b
4 changed files with 118 additions and 92 deletions
|
|
@ -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: []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue