Skip to content
Snippets Groups Projects
Commit 3759b146 authored by Ivan Tashkinov's avatar Ivan Tashkinov
Browse files

Apply suggestion to lib/pleroma/plugs/rate_limiter/rate_limiter.ex

parent 6f2efb1c
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,7 @@ def inspect_bucket(conn, bucket_name_root, plug_opts) do
end
def action_settings(plug_opts) do
with limiter_name when not is_nil(limiter_name) <- plug_opts[:name],
with limiter_name when is_atom(limiter_name) <- plug_opts[:name],
limits when not is_nil(limits) <- Config.get([:rate_limit, limiter_name]) do
bucket_name_root = Keyword.get(plug_opts, :bucket_name, limiter_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment