more clean up
This commit is contained in:
parent
39ed608b13
commit
98ed0d1c4b
7 changed files with 21 additions and 22 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue