diff --git a/apps/api_web/lib/api_web/rate_limiter/rate_limiter_concurrent.ex b/apps/api_web/lib/api_web/rate_limiter/rate_limiter_concurrent.ex index 3f01de01e..7d13294ff 100644 --- a/apps/api_web/lib/api_web/rate_limiter/rate_limiter_concurrent.ex +++ b/apps/api_web/lib/api_web/rate_limiter/rate_limiter_concurrent.ex @@ -37,10 +37,6 @@ defmodule ApiWeb.RateLimiter.RateLimiterConcurrent do uuid end - def handle_call(:get_uuid, _from, state) do - {:reply, {:ok, state.uuid}, state} - end - defp get_current_unix_ts do System.system_time(:second) end @@ -174,6 +170,10 @@ defmodule ApiWeb.RateLimiter.RateLimiterConcurrent do Keyword.fetch!(Application.get_env(:api_web, :rate_limiter_concurrent), :memcache) == True end + def handle_call(:get_uuid, _from, state) do + {:reply, {:ok, state.uuid}, state} + end + def handle_call({:memcache_get, key, default_value}, _from, state) do {:reply, {:ok,