chore: update hocon to 0.39.8

This commit is contained in:
zhongwencool 2023-06-10 19:27:58 +08:00
parent 346b363cb5
commit 072f6fac8d
5 changed files with 28 additions and 28 deletions

View File

@ -29,7 +29,7 @@
{esockd, {git, "https://github.com/emqx/esockd", {tag, "5.9.6"}}}, {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.9.6"}}},
{ekka, {git, "https://github.com/emqx/ekka", {tag, "0.15.2"}}}, {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.15.2"}}},
{gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.8.1"}}}, {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.8.1"}}},
{hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.39.7"}}}, {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.39.8"}}},
{emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.5.2"}}}, {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.5.2"}}},
{pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}}, {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}},
{recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}}, {recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}},

View File

@ -382,7 +382,7 @@ fields("persistent_table_mria_opts") ->
]; ];
fields("persistent_session_builtin") -> fields("persistent_session_builtin") ->
[ [
{"type", sc(hoconsc:enum([builtin]), #{default => <<"builtin">>, desc => ""})}, {"type", sc(hoconsc:enum([builtin]), #{default => builtin, desc => ""})},
{"session", {"session",
sc(ref("persistent_table_mria_opts"), #{ sc(ref("persistent_table_mria_opts"), #{
desc => ?DESC(persistent_session_builtin_session_table) desc => ?DESC(persistent_session_builtin_session_table)
@ -548,7 +548,7 @@ fields("mqtt") ->
sc( sc(
hoconsc:union([integer(), disabled]), hoconsc:union([integer(), disabled]),
#{ #{
default => <<"disabled">>, default => disabled,
desc => ?DESC(mqtt_server_keepalive) desc => ?DESC(mqtt_server_keepalive)
} }
)}, )},
@ -575,7 +575,7 @@ fields("mqtt") ->
sc( sc(
hoconsc:union([range(1, inf), infinity]), hoconsc:union([range(1, inf), infinity]),
#{ #{
default => <<"infinity">>, default => infinity,
desc => ?DESC(mqtt_max_subscriptions) desc => ?DESC(mqtt_max_subscriptions)
} }
)}, )},
@ -639,7 +639,7 @@ fields("mqtt") ->
sc( sc(
hoconsc:union([disabled, map()]), hoconsc:union([disabled, map()]),
#{ #{
default => <<"disabled">>, default => disabled,
desc => ?DESC(mqtt_mqueue_priorities) desc => ?DESC(mqtt_mqueue_priorities)
} }
)}, )},
@ -647,7 +647,7 @@ fields("mqtt") ->
sc( sc(
hoconsc:enum([highest, lowest]), hoconsc:enum([highest, lowest]),
#{ #{
default => <<"lowest">>, default => lowest,
desc => ?DESC(mqtt_mqueue_default_priority) desc => ?DESC(mqtt_mqueue_default_priority)
} }
)}, )},
@ -671,7 +671,7 @@ fields("mqtt") ->
sc( sc(
hoconsc:enum([disabled, cn, dn, crt, pem, md5]), hoconsc:enum([disabled, cn, dn, crt, pem, md5]),
#{ #{
default => <<"disabled">>, default => disabled,
desc => ?DESC(mqtt_peer_cert_as_username) desc => ?DESC(mqtt_peer_cert_as_username)
} }
)}, )},
@ -679,7 +679,7 @@ fields("mqtt") ->
sc( sc(
hoconsc:enum([disabled, cn, dn, crt, pem, md5]), hoconsc:enum([disabled, cn, dn, crt, pem, md5]),
#{ #{
default => <<"disabled">>, default => disabled,
desc => ?DESC(mqtt_peer_cert_as_clientid) desc => ?DESC(mqtt_peer_cert_as_clientid)
} }
)} )}
@ -1224,7 +1224,7 @@ fields("ws_opts") ->
sc( sc(
hoconsc:enum([single, multiple]), hoconsc:enum([single, multiple]),
#{ #{
default => <<"multiple">>, default => multiple,
desc => ?DESC(fields_ws_opts_mqtt_piggyback) desc => ?DESC(fields_ws_opts_mqtt_piggyback)
} }
)}, )},
@ -1248,7 +1248,7 @@ fields("ws_opts") ->
sc( sc(
hoconsc:union([infinity, integer()]), hoconsc:union([infinity, integer()]),
#{ #{
default => <<"infinity">>, default => infinity,
desc => ?DESC(fields_ws_opts_max_frame_size) desc => ?DESC(fields_ws_opts_max_frame_size)
} }
)}, )},
@ -1506,7 +1506,7 @@ fields("deflate_opts") ->
sc( sc(
hoconsc:enum([default, filtered, huffman_only, rle]), hoconsc:enum([default, filtered, huffman_only, rle]),
#{ #{
default => <<"default">>, default => default,
desc => ?DESC(fields_deflate_opts_strategy) desc => ?DESC(fields_deflate_opts_strategy)
} }
)}, )},
@ -1514,7 +1514,7 @@ fields("deflate_opts") ->
sc( sc(
hoconsc:enum([takeover, no_takeover]), hoconsc:enum([takeover, no_takeover]),
#{ #{
default => <<"takeover">>, default => takeover,
desc => ?DESC(fields_deflate_opts_server_context_takeover) desc => ?DESC(fields_deflate_opts_server_context_takeover)
} }
)}, )},
@ -1522,7 +1522,7 @@ fields("deflate_opts") ->
sc( sc(
hoconsc:enum([takeover, no_takeover]), hoconsc:enum([takeover, no_takeover]),
#{ #{
default => <<"takeover">>, default => takeover,
desc => ?DESC(fields_deflate_opts_client_context_takeover) desc => ?DESC(fields_deflate_opts_client_context_takeover)
} }
)}, )},
@ -1557,7 +1557,7 @@ fields("broker") ->
sc( sc(
hoconsc:enum([local, leader, quorum, all]), hoconsc:enum([local, leader, quorum, all]),
#{ #{
default => <<"quorum">>, default => quorum,
desc => ?DESC(broker_session_locking_strategy) desc => ?DESC(broker_session_locking_strategy)
} }
)}, )},
@ -1573,7 +1573,7 @@ fields("broker") ->
hash_clientid hash_clientid
]), ]),
#{ #{
default => <<"round_robin">>, default => round_robin,
desc => ?DESC(broker_shared_subscription_strategy) desc => ?DESC(broker_shared_subscription_strategy)
} }
)}, )},
@ -1626,7 +1626,7 @@ fields("shared_subscription_group") ->
hash_clientid hash_clientid
]), ]),
#{ #{
default => <<"random">>, default => random,
desc => ?DESC(shared_subscription_strategy_enum) desc => ?DESC(shared_subscription_strategy_enum)
} }
)} )}
@ -1637,7 +1637,7 @@ fields("broker_perf") ->
sc( sc(
hoconsc:enum([key, tab, global]), hoconsc:enum([key, tab, global]),
#{ #{
default => <<"key">>, default => key,
desc => ?DESC(broker_perf_route_lock_type) desc => ?DESC(broker_perf_route_lock_type)
} }
)}, )},
@ -1759,7 +1759,7 @@ fields("sysmon_vm") ->
sc( sc(
hoconsc:union([disabled, duration()]), hoconsc:union([disabled, duration()]),
#{ #{
default => <<"disabled">>, default => disabled,
desc => ?DESC(sysmon_vm_long_gc) desc => ?DESC(sysmon_vm_long_gc)
} }
)}, )},
@ -1959,7 +1959,7 @@ fields("trace") ->
[ [
{"payload_encode", {"payload_encode",
sc(hoconsc:enum([hex, text, hidden]), #{ sc(hoconsc:enum([hex, text, hidden]), #{
default => <<"text">>, default => text,
deprecated => {since, "5.0.22"}, deprecated => {since, "5.0.22"},
importance => ?IMPORTANCE_HIDDEN, importance => ?IMPORTANCE_HIDDEN,
desc => ?DESC(fields_trace_payload_encode) desc => ?DESC(fields_trace_payload_encode)
@ -2048,7 +2048,7 @@ base_listener(Bind) ->
atom(), atom(),
#{ #{
desc => ?DESC(base_listener_zone), desc => ?DESC(base_listener_zone),
default => <<"default">> default => 'default'
} }
)}, )},
{"limiter", {"limiter",
@ -2283,7 +2283,7 @@ common_ssl_opts_schema(Defaults, Type) ->
sc( sc(
hoconsc:enum([verify_peer, verify_none]), hoconsc:enum([verify_peer, verify_none]),
#{ #{
default => Df("verify", <<"verify_none">>), default => Df("verify", verify_none),
desc => ?DESC(common_ssl_opts_schema_verify) desc => ?DESC(common_ssl_opts_schema_verify)
} }
)}, )},
@ -2351,7 +2351,7 @@ common_ssl_opts_schema(Defaults, Type) ->
emergency, alert, critical, error, warning, notice, info, debug, none, all emergency, alert, critical, error, warning, notice, info, debug, none, all
]), ]),
#{ #{
default => <<"notice">>, default => notice,
desc => ?DESC(common_ssl_opts_schema_log_level), desc => ?DESC(common_ssl_opts_schema_log_level),
importance => ?IMPORTANCE_LOW importance => ?IMPORTANCE_LOW
} }
@ -2611,7 +2611,7 @@ authz_fields() ->
sc( sc(
hoconsc:enum([allow, deny]), hoconsc:enum([allow, deny]),
#{ #{
default => <<"allow">>, default => allow,
required => true, required => true,
desc => ?DESC(fields_authorization_no_match) desc => ?DESC(fields_authorization_no_match)
} }
@ -2620,7 +2620,7 @@ authz_fields() ->
sc( sc(
hoconsc:enum([ignore, disconnect]), hoconsc:enum([ignore, disconnect]),
#{ #{
default => <<"ignore">>, default => ignore,
required => true, required => true,
desc => ?DESC(fields_authorization_deny_action) desc => ?DESC(fields_authorization_deny_action)
} }

View File

@ -62,7 +62,7 @@ end_per_suite(_Config) ->
t_log_conf(_Conf) -> t_log_conf(_Conf) ->
FileExpect = #{ FileExpect = #{
<<"enable">> => true, <<"enable">> => true,
<<"formatter">> => text, <<"formatter">> => <<"text">>,
<<"level">> => <<"info">>, <<"level">> => <<"info">>,
<<"rotation_count">> => 10, <<"rotation_count">> => 10,
<<"rotation_size">> => <<"50MB">>, <<"rotation_size">> => <<"50MB">>,
@ -73,7 +73,7 @@ t_log_conf(_Conf) ->
<<"console">> => <<"console">> =>
#{ #{
<<"enable">> => true, <<"enable">> => true,
<<"formatter">> => text, <<"formatter">> => <<"text">>,
<<"level">> => <<"debug">>, <<"level">> => <<"debug">>,
<<"time_offset">> => <<"system">> <<"time_offset">> => <<"system">>
}, },

View File

@ -72,7 +72,7 @@ defmodule EMQXUmbrella.MixProject do
# in conflict by emqtt and hocon # in conflict by emqtt and hocon
{:getopt, "1.0.2", override: true}, {:getopt, "1.0.2", override: true},
{:snabbkaffe, github: "kafka4beam/snabbkaffe", tag: "1.0.8", override: true}, {:snabbkaffe, github: "kafka4beam/snabbkaffe", tag: "1.0.8", override: true},
{:hocon, github: "emqx/hocon", tag: "0.39.7", override: true}, {:hocon, github: "emqx/hocon", tag: "0.39.8", override: true},
{:emqx_http_lib, github: "emqx/emqx_http_lib", tag: "0.5.2", override: true}, {:emqx_http_lib, github: "emqx/emqx_http_lib", tag: "0.5.2", override: true},
{:esasl, github: "emqx/esasl", tag: "0.2.0"}, {:esasl, github: "emqx/esasl", tag: "0.2.0"},
{:jose, github: "potatosalad/erlang-jose", tag: "1.11.2"}, {:jose, github: "potatosalad/erlang-jose", tag: "1.11.2"},

View File

@ -75,7 +75,7 @@
, {system_monitor, {git, "https://github.com/ieQu1/system_monitor", {tag, "3.0.3"}}} , {system_monitor, {git, "https://github.com/ieQu1/system_monitor", {tag, "3.0.3"}}}
, {getopt, "1.0.2"} , {getopt, "1.0.2"}
, {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "1.0.8"}}} , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "1.0.8"}}}
, {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.39.7"}}} , {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.39.8"}}}
, {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.5.2"}}} , {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.5.2"}}}
, {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.2.0"}}} , {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.2.0"}}}
, {jose, {git, "https://github.com/potatosalad/erlang-jose", {tag, "1.11.2"}}} , {jose, {git, "https://github.com/potatosalad/erlang-jose", {tag, "1.11.2"}}}