fix event_period_settings

This commit is contained in:
anlicheng 2024-07-31 14:26:13 +08:00
parent 2aeda3d2a4
commit 522981b0a9

View File

@ -73,9 +73,7 @@ start_link() ->
{stop, Reason :: term()} | ignore).
init([]) ->
ets:new(?TAB_NAME, [public, set, named_table, {keypos, 2}, {read_concurrency, true}]),
catch settings(),
erlang:start_timer(?UPDATE_TICKER * 1000, self(), update_ticker),
erlang:start_timer(0, self(), update_ticker),
{ok, #state{}}.
%% @private