Explorar o código

fix(emqx_rule_engine_sup): discard ets:new return value

Zaiming Shi %!s(int64=5) %!d(string=hai) anos
pai
achega
5bb1da5896
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apps/emqx_rule_engine/src/emqx_rule_engine_sup.erl

+ 2 - 2
apps/emqx_rule_engine/src/emqx_rule_engine_sup.erl

@@ -31,8 +31,8 @@ start_link() ->
 
 
 init([]) ->
 init([]) ->
     Opts = [public, named_table, set, {read_concurrency, true}],
     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,
     Registry = #{id => emqx_rule_registry,
                  start => {emqx_rule_registry, start_link, []},
                  start => {emqx_rule_registry, start_link, []},
                  restart => permanent,
                  restart => permanent,