fix(api): slow subs update config return

This commit is contained in:
DDDHuang 2022-03-21 15:55:54 +08:00
parent e517b41a4d
commit 9a6653d152
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ settings(get, _) ->
settings(put, #{body := Body}) -> settings(put, #{body := Body}) ->
case emqx_slow_subs:update_settings(Body) of case emqx_slow_subs:update_settings(Body) of
{ok, NewConf} -> {ok, #{config := NewConf}} ->
{200, NewConf}; {200, NewConf};
{error, Reason} -> {error, Reason} ->
Message = list_to_binary(io_lib:format("Update slow subs config failed ~p", [Reason])), Message = list_to_binary(io_lib:format("Update slow subs config failed ~p", [Reason])),