1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Pool.Supervisor do
10 def start_link(args) do
11 Supervisor.start_link(__MODULE__, args, name: __MODULE__)
20 {Pool.Connections, :start_link,
21 [{:gun_connections, Pleroma.Config.get([:connections_pool])}]}
25 Supervisor.init(children, strategy: :one_for_one)
29 for {pool_name, pool_opts} <- Pleroma.Config.get([:pools]) do
31 |> Keyword.put(:id, {Pool, pool_name})
32 |> Keyword.put(:name, pool_name)