Skip to content

Commit

Permalink
no limit for system env fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
zemuldo committed Oct 28, 2023
1 parent a202994 commit 7073326
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/utils/secret_fetch_limiter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ defmodule ExSecrets.Utils.SecretFetchLimiter do
end

def allow(key, module, function, args) do
case :ets.whereis(@table_name) do
:undefined ->
case {:ets.whereis(@table_name), args} do
{_, [_, :system_env]} ->
Kernel.apply(module, function, args)
{:undefined, _} ->
Kernel.apply(module, function, args)

_ ->
{_, _} ->
now = current_time()

@table_name
Expand Down

0 comments on commit 7073326

Please sign in to comment.