logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

supervisor.ex (507B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.Plugs.RateLimiter.Supervisor do
  5. use Supervisor
  6. def start_link(opts) do
  7. Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
  8. end
  9. def init(_args) do
  10. children = [
  11. Pleroma.Web.Plugs.RateLimiter.LimiterSupervisor
  12. ]
  13. opts = [strategy: :one_for_one]
  14. Supervisor.init(children, opts)
  15. end
  16. end