more clean up

This commit is contained in:
Alexander Strizhakov 2020-03-13 09:37:57 +03:00
commit 98ed0d1c4b
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
7 changed files with 21 additions and 22 deletions

View file

@ -39,7 +39,6 @@ defmodule Pleroma.Pool.Request do
@impl true
def handle_info({:gun_down, _conn, _protocol, _reason, _killed}, state) do
# don't flush messages here, because gun can reconnect
{:noreply, state}
end

View file

@ -13,16 +13,13 @@ defmodule Pleroma.Pool.Supervisor do
end
def init(_) do
children =
[
%{
id: Pool.Connections,
start:
{Pool.Connections, :start_link, [{:gun_connections, Config.get([:connections_pool])}]}
}
] ++ pools()
conns_child = %{
id: Pool.Connections,
start:
{Pool.Connections, :start_link, [{:gun_connections, Config.get([:connections_pool])}]}
}
Supervisor.init(children, strategy: :one_for_one)
Supervisor.init([conns_child | pools()], strategy: :one_for_one)
end
defp pools do