fix ets
This commit is contained in:
parent
90c3a12636
commit
23b144e48a
@ -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),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user