Merge remote-tracking branch 'upstream/develop' into feature/move-activity
[akkoma] / lib / pleroma / plugs / rate_limiter / supervisor.ex
1 defmodule Pleroma.Plugs.RateLimiter.Supervisor do
2 use Supervisor
3
4 def start_link(opts) do
5 Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
6 end
7
8 def init(_args) do
9 children = [
10 Pleroma.Plugs.RateLimiter.LimiterSupervisor
11 ]
12
13 opts = [strategy: :one_for_one, name: Pleroma.Web.Streamer.Supervisor]
14 Supervisor.init(children, opts)
15 end
16 end