remove epoch counter table checking in init function

pull/1916/head
saneery 6 years ago
parent d85aed52bf
commit a24314ff72
  1. 14
      apps/explorer/lib/explorer/staking/epoch_counter.ex

@ -44,14 +44,12 @@ defmodule Explorer.Staking.EpochCounter do
end
def init([]) do
if :ets.whereis(@table_name) == :undefined do
:ets.new(@table_name, [
:set,
:named_table,
:public,
write_concurrency: true
])
end
:ets.new(@table_name, [
:set,
:named_table,
:public,
write_concurrency: true
])
Subscriber.to(:blocks, :realtime)
{:ok, [], {:continue, :epoch_info}}

Loading…
Cancel
Save