logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma

supervisor.ex (379B)


  1. defmodule Pleroma.Plugs.RateLimiter.Supervisor do
  2. use Supervisor
  3. def start_link(opts) do
  4. Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
  5. end
  6. def init(_args) do
  7. children = [
  8. Pleroma.Plugs.RateLimiter.LimiterSupervisor
  9. ]
  10. opts = [strategy: :one_for_one, name: Pleroma.Web.Streamer.Supervisor]
  11. Supervisor.init(children, opts)
  12. end
  13. end