Merge branch 'develop' into refactor/discoverable_user_field
[akkoma] / lib / pleroma / web / plugs / rate_limiter / supervisor.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Web.Plugs.RateLimiter.Supervisor do
6 use Supervisor
7
8 def start_link(opts) do
9 Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
10 end
11
12 def init(_args) do
13 children = [
14 Pleroma.Web.Plugs.RateLimiter.LimiterSupervisor
15 ]
16
17 opts = [strategy: :one_for_one, name: Pleroma.Web.Streamer.Supervisor]
18 Supervisor.init(children, opts)
19 end
20 end