chore: upgrade hocon to 0.26.4 to limit HOCON_MAP's key format
This commit is contained in:
parent
55f805bac0
commit
8d46332b30
|
@ -30,7 +30,7 @@
|
|||
{esockd, {git, "https://github.com/emqx/esockd", {tag, "5.9.1"}}},
|
||||
{ekka, {git, "https://github.com/emqx/ekka", {tag, "0.12.3"}}},
|
||||
{gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.8.1"}}},
|
||||
{hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.26.3"}}},
|
||||
{hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.26.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"}}},
|
||||
{snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.18.0"}}}
|
||||
|
|
|
@ -36,7 +36,7 @@ t_get_error_state(_) ->
|
|||
|
||||
t_get_state(_) ->
|
||||
with_proc(fun() ->
|
||||
?assertEqual(undefined, emqx_stats:getstat('notExist')),
|
||||
?assertEqual(0, emqx_stats:getstat('notExist')),
|
||||
SetConnsCount = emqx_stats:statsfun('connections.count'),
|
||||
SetConnsCount(1),
|
||||
?assertEqual(1, emqx_stats:getstat('connections.count')),
|
||||
|
|
|
@ -243,8 +243,8 @@ format(TimeStamp, Data, All) ->
|
|||
[Data#{time_stamp => TimeStamp} | All].
|
||||
|
||||
cal_rate(_Now, undefined) ->
|
||||
AllSamples = ?GAUGE_SAMPLER_LIST ++ maps:keys(?DELTA_SAMPLER_RATE_MAP),
|
||||
{ok, lists:foldl(fun(Key, Acc) -> Acc#{Key => 0} end, #{}, AllSamples)};
|
||||
AllSamples = ?GAUGE_SAMPLER_LIST ++ maps:values(?DELTA_SAMPLER_RATE_MAP),
|
||||
lists:foldl(fun(Key, Acc) -> Acc#{Key => 0} end, #{}, AllSamples);
|
||||
cal_rate( #emqx_monit{data = NowData, time = NowTime}
|
||||
, #emqx_monit{data = LastData, time = LastTime}) ->
|
||||
TimeDelta = NowTime - LastTime,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
[ {emqx, {path, "../emqx"}},
|
||||
%% FIXME: tag this as v3.1.3
|
||||
{prometheus, {git, "https://github.com/deadtrickster/prometheus.erl", {tag, "v4.8.1"}}},
|
||||
{hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.26.3"}}}
|
||||
{hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.26.4"}}}
|
||||
]}.
|
||||
|
||||
{edoc_opts, [{preprocess, true}]}.
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -68,7 +68,7 @@ defmodule EMQXUmbrella.MixProject do
|
|||
# in conflict by emqtt and hocon
|
||||
{:getopt, "1.0.2", override: true},
|
||||
{:snabbkaffe, github: "kafka4beam/snabbkaffe", tag: "0.18.0", override: true},
|
||||
{:hocon, github: "emqx/hocon", tag: "0.26.3", override: true},
|
||||
{:hocon, github: "emqx/hocon", tag: "0.26.4", override: true},
|
||||
{:emqx_http_lib, github: "emqx/emqx_http_lib", tag: "0.4.1", override: true},
|
||||
{:esasl, github: "emqx/esasl", tag: "0.2.0"},
|
||||
{:jose, github: "potatosalad/erlang-jose", tag: "1.11.2"},
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
, {system_monitor, {git, "https://github.com/ieQu1/system_monitor", {tag, "3.0.2"}}}
|
||||
, {getopt, "1.0.2"}
|
||||
, {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.18.0"}}}
|
||||
, {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.26.3"}}}
|
||||
, {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.26.4"}}}
|
||||
, {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.4.1"}}}
|
||||
, {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.2.0"}}}
|
||||
, {jose, {git, "https://github.com/potatosalad/erlang-jose", {tag, "1.11.2"}}}
|
||||
|
|
Loading…
Reference in New Issue