chore(schema): mark deprecated quic listener fields ?IMPORTANCE_HIDDEN

This commit is contained in:
William Yang 2023-05-02 22:20:39 +02:00
parent 8e7ba2b6d1
commit a4a5599636
2 changed files with 18 additions and 7 deletions

View File

@ -3,7 +3,7 @@
{id, "emqx"}, {id, "emqx"},
{description, "EMQX Core"}, {description, "EMQX Core"},
% strict semver, bump manually! % strict semver, bump manually!
{vsn, "5.0.24"}, {vsn, "5.0.25"},
{modules, []}, {modules, []},
{registered, []}, {registered, []},
{applications, [ {applications, [

View File

@ -920,15 +920,17 @@ fields("mqtt_quic_listener") ->
string(), string(),
#{ #{
%% TODO: deprecated => {since, "5.1.0"} %% TODO: deprecated => {since, "5.1.0"}
desc => ?DESC(fields_mqtt_quic_listener_certfile) desc => ?DESC(fields_mqtt_quic_listener_certfile),
importance => ?IMPORTANCE_HIDDEN
} }
)}, )},
{"keyfile", {"keyfile",
sc( sc(
string(), string(),
%% TODO: deprecated => {since, "5.1.0"}
#{ #{
desc => ?DESC(fields_mqtt_quic_listener_keyfile) %% TODO: deprecated => {since, "5.1.0"}
desc => ?DESC(fields_mqtt_quic_listener_keyfile),
importance => ?IMPORTANCE_HIDDEN
} }
)}, )},
{"ciphers", ciphers_schema(quic)}, {"ciphers", ciphers_schema(quic)},
@ -1004,7 +1006,10 @@ fields("mqtt_quic_listener") ->
duration_ms(), duration_ms(),
#{ #{
default => 0, default => 0,
desc => ?DESC(fields_mqtt_quic_listener_idle_timeout) desc => ?DESC(fields_mqtt_quic_listener_idle_timeout),
%% TODO: deprecated => {since, "5.1.0"}
%% deprecated, use idle_timeout_ms instead
importance => ?IMPORTANCE_HIDDEN
} }
)}, )},
{"idle_timeout_ms", {"idle_timeout_ms",
@ -1018,7 +1023,10 @@ fields("mqtt_quic_listener") ->
duration_ms(), duration_ms(),
#{ #{
default => <<"10s">>, default => <<"10s">>,
desc => ?DESC(fields_mqtt_quic_listener_handshake_idle_timeout) desc => ?DESC(fields_mqtt_quic_listener_handshake_idle_timeout),
%% TODO: deprecated => {since, "5.1.0"}
%% use handshake_idle_timeout_ms
importance => ?IMPORTANCE_HIDDEN
} }
)}, )},
{"handshake_idle_timeout_ms", {"handshake_idle_timeout_ms",
@ -1032,7 +1040,10 @@ fields("mqtt_quic_listener") ->
duration_ms(), duration_ms(),
#{ #{
default => 0, default => 0,
desc => ?DESC(fields_mqtt_quic_listener_keep_alive_interval) desc => ?DESC(fields_mqtt_quic_listener_keep_alive_interval),
%% TODO: deprecated => {since, "5.1.0"}
%% use keep_alive_interval_ms instead
importance => ?IMPORTANCE_HIDDEN
} }
)}, )},
{"keep_alive_interval_ms", {"keep_alive_interval_ms",