refactor: call ets:info/2 for size instead of ets:info/1
@@ -1,7 +1,7 @@
%% -*- mode: erlang -*-
{application, emqx_modules, [
{description, "EMQX Modules"},
- {vsn, "5.0.28"},
+ {vsn, "5.0.29"},
{modules, []},
{applications, [kernel, stdlib, emqx, emqx_ctl, observer_cli]},
{mod, {emqx_modules_app, []}},
@@ -468,7 +468,7 @@ counters_size() ->
length(?TOPIC_METRICS).
number_of_registered_topics() ->
- proplists:get_value(size, ets:info(?TAB)).
+ ets:info(?TAB, size).
calculate_speed(CurVal, #speed{
last = Last,