This commit is contained in:
anlicheng 2024-07-23 16:39:59 +08:00
parent 90c3a12636
commit 23b144e48a

View File

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