fix(statsd): fix dialyzer warnings

This commit is contained in:
JianBo He 2021-12-31 16:41:35 +08:00
parent 2411c22b42
commit 231aeb6068
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ statsd(put, #{body := Body}) ->
Body, Body,
#{rawconf_with_defaults => true, override_to => cluster}) of #{rawconf_with_defaults => true, override_to => cluster}) of
{ok, #{raw_config := NewConfig, config := Config}} -> {ok, #{raw_config := NewConfig, config := Config}} ->
case maps:get(<<"enable">>, Body) of _ = case maps:get(<<"enable">>, Body) of
true -> true ->
_ = emqx_statsd_sup:stop_child(?APP), _ = emqx_statsd_sup:stop_child(?APP),
emqx_statsd_sup:start_child(?APP, maps:get(config, Config)); emqx_statsd_sup:start_child(?APP, maps:get(config, Config));