fix: connector_count contains bridge_v1 and bridge_v2
This commit is contained in:
parent
f457def201
commit
76d9ace582
|
@ -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())
|
||||
}.
|
||||
|
||||
%%========================================
|
||||
|
|
Loading…
Reference in New Issue