chore: mark deprecated QUIC listener config for 5.1

This commit is contained in:
William Yang 2023-06-07 08:53:59 +02:00
parent 3a7d4ea29d
commit 8fa743fa22
2 changed files with 5 additions and 8 deletions

View File

@ -417,10 +417,7 @@ do_start_listener(quic, ListenerName, #{bind := Bind} = Opts) ->
case [A || {quicer, _, _} = A <- application:which_applications()] of
[_] ->
DefAcceptors = erlang:system_info(schedulers_online) * 8,
SSLOpts = maps:merge(
maps:with([certfile, keyfile], Opts),
maps:get(ssl_options, Opts, #{})
),
SSLOpts = maps:get(ssl_options, Opts, #{}),
ListenOpts =
[
{certfile, emqx_schema:naive_env_interpolation(maps:get(certfile, SSLOpts))},

View File

@ -980,7 +980,7 @@ fields("mqtt_quic_listener") ->
sc(
string(),
#{
%% TODO: deprecated => {since, "5.1.0"}
deprecated => {since, "5.1.0"},
desc => ?DESC(fields_mqtt_quic_listener_certfile),
importance => ?IMPORTANCE_HIDDEN
}
@ -989,7 +989,7 @@ fields("mqtt_quic_listener") ->
sc(
string(),
#{
%% TODO: deprecated => {since, "5.1.0"}
deprecated => {since, "5.1.0"},
desc => ?DESC(fields_mqtt_quic_listener_keyfile),
importance => ?IMPORTANCE_HIDDEN
}
@ -1068,7 +1068,7 @@ fields("mqtt_quic_listener") ->
#{
default => 0,
desc => ?DESC(fields_mqtt_quic_listener_idle_timeout),
%% TODO: deprecated => {since, "5.1.0"}
deprecated => {since, "5.1.0"},
%% deprecated, use idle_timeout_ms instead
importance => ?IMPORTANCE_HIDDEN
}
@ -1085,7 +1085,7 @@ fields("mqtt_quic_listener") ->
#{
default => <<"10s">>,
desc => ?DESC(fields_mqtt_quic_listener_handshake_idle_timeout),
%% TODO: deprecated => {since, "5.1.0"}
deprecated => {since, "5.1.0"},
%% use handshake_idle_timeout_ms
importance => ?IMPORTANCE_HIDDEN
}