fix: connector_count contains bridge_v1 and bridge_v2

This commit is contained in:
JimMoen 2024-01-15 11:28:54 +08:00
parent f457def201
commit 76d9ace582
No known key found for this signature in database
1 changed files with 2 additions and 8 deletions

View File

@ -330,14 +330,8 @@ connectors() ->
connectors_data() ->
#{
emqx_connector_count =>
lists:foldl(
fun(List, AccIn) -> erlang:length(List) + AccIn end,
0,
[
emqx_connector:list(), emqx_bridge:list(), emqx_bridge_v2:list()
]
)
%% Both Bridge V1 and V2
emqx_connector_count => erlang:length(emqx_bridge:list())
}.
%%========================================