Skip to content

Commit

Permalink
wip: fix complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
nlwstein committed Jan 16, 2024
1 parent 6941a1e commit b1fc43b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b1fc43b

Please sign in to comment.