forked from AkkomaGang/akkoma
renaming LimiterSupervisor
This commit is contained in:
parent
6a87f94ee2
commit
e267991a44
3 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ defmodule Pleroma.Plugs.RateLimiter do
|
||||||
import Plug.Conn
|
import Plug.Conn
|
||||||
|
|
||||||
alias Pleroma.Config
|
alias Pleroma.Config
|
||||||
alias Pleroma.Plugs.RateLimiter.LimiterSupervisor
|
alias Pleroma.Web.Plugs.RateLimiter.LimiterSupervisor
|
||||||
alias Pleroma.User
|
alias Pleroma.User
|
||||||
|
|
||||||
require Logger
|
require Logger
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
|
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
|
||||||
# SPDX-License-Identifier: AGPL-3.0-only
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
defmodule Pleroma.Plugs.RateLimiter.LimiterSupervisor do
|
defmodule Pleroma.Web.Plugs.RateLimiter.LimiterSupervisor do
|
||||||
use DynamicSupervisor
|
use DynamicSupervisor
|
||||||
|
|
||||||
import Cachex.Spec
|
import Cachex.Spec
|
||||||
|
|
|
@ -11,7 +11,7 @@ def start_link(opts) do
|
||||||
|
|
||||||
def init(_args) do
|
def init(_args) do
|
||||||
children = [
|
children = [
|
||||||
Pleroma.Plugs.RateLimiter.LimiterSupervisor
|
Pleroma.Web.Plugs.RateLimiter.LimiterSupervisor
|
||||||
]
|
]
|
||||||
|
|
||||||
opts = [strategy: :one_for_one, name: Pleroma.Web.Streamer.Supervisor]
|
opts = [strategy: :one_for_one, name: Pleroma.Web.Streamer.Supervisor]
|
||||||
|
|
Loading…
Reference in a new issue