@ -6,9 +6,8 @@ defmodule Explorer.Application do
use Application
alias Explorer.Admin
alias Explorer.Chain.BlockNumberCache
alias Explorer.Chain.{BlockNumberCache, TransactionCountCache}
alias Explorer.Repo.PrometheusLogger
alias Explorer.Chain.TransactionCountCache
@impl Application
def start(_type, _args) do
@ -84,8 +84,12 @@ defmodule Explorer.Chain.TransactionCountCache do
{:noreply, {{cache_period, default_value, name}, nil}}
end
# sobelow_skip ["DOS"]
defp table_name(name) do
name |> Atom.to_string() |> Macro.underscore() |> String.to_atom()
name
|> Atom.to_string()
|> Macro.underscore()
|> String.to_atom()
def async_update_cache(name) do