fix: don't show quic in dashboard

This commit is contained in:
Zhongwen Deng 2022-04-22 17:28:57 +08:00
parent 908019fff3
commit 11a404842e
2 changed files with 7 additions and 2 deletions

View File

@ -86,7 +86,7 @@ roots() -> [limiter].
fields(limiter) ->
[
{bytes_in, sc(ref(limiter_opts), #{desc => ?DESC(bytes_in)})},
{message_in, sc(ref(limiter_opts), #{description => ?DESC(message_in)})},
{message_in, sc(ref(limiter_opts), #{desc => ?DESC(message_in)})},
{connection, sc(ref(limiter_opts), #{desc => ?DESC(connection)})},
{message_routing, sc(ref(limiter_opts), #{desc => ?DESC(message_routing)})},
{batch, sc(ref(limiter_opts), #{desc => ?DESC(batch)})}

View File

@ -63,7 +63,12 @@ id_example() -> 'tcp:default'.
%% @doc List configured listeners.
-spec list_raw() -> [{ListenerId :: atom(), Type :: binary(), ListenerConf :: map()}].
list_raw() ->
[{listener_id(Type, LName), Type, LConf} || {Type, LName, LConf} <- do_list_raw()].
[
{listener_id(Type, LName), Type, LConf}
|| %% FIXME: quic is not supported update vi dashboard yet
{Type, LName, LConf} <- do_list_raw(),
Type =/= <<"quic">>
].
list() ->
Listeners = maps:to_list(emqx:get_config([listeners], #{})),