@ -13,15 +13,17 @@ defmodule Explorer.Chain.BlockNumberCache do
@spec setup(Keyword.t()) :: :ok
def setup(opts \\ []) do
:ets.new(@tab, [
:set,
:named_table,
:public,
write_concurrency: true
])
if :ets.whereis(@tab) == :undefined do
end
update_cache()
setup_opts(opts)
:ok