fix(emqx_rule_engine_sup): discard ets:new return value

This commit is contained in:
Zaiming Shi 2020-11-17 12:56:13 +01:00
parent 62e0a21ad0
commit 5bb1da5896
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ start_link() ->
init([]) ->
Opts = [public, named_table, set, {read_concurrency, true}],
ets:new(?ACTION_INST_PARAMS_TAB, [{keypos, #action_instance_params.id}|Opts]),
ets:new(?RES_PARAMS_TAB, [{keypos, #resource_params.id}|Opts]),
_ = ets:new(?ACTION_INST_PARAMS_TAB, [{keypos, #action_instance_params.id}|Opts]),
_ = ets:new(?RES_PARAMS_TAB, [{keypos, #resource_params.id}|Opts]),
Registry = #{id => emqx_rule_registry,
start => {emqx_rule_registry, start_link, []},
restart => permanent,