diff --git a/apps/explorer/lib/explorer/application.ex b/apps/explorer/lib/explorer/application.ex index b896e84a1f..65f91c1d4b 100644 --- a/apps/explorer/lib/explorer/application.ex +++ b/apps/explorer/lib/explorer/application.ex @@ -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 diff --git a/apps/explorer/lib/explorer/chain/transaction_count_cache.ex b/apps/explorer/lib/explorer/chain/transaction_count_cache.ex index 463a6d6cec..809453338a 100644 --- a/apps/explorer/lib/explorer/chain/transaction_count_cache.ex +++ b/apps/explorer/lib/explorer/chain/transaction_count_cache.ex @@ -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() end def async_update_cache(name) do