From d4aa5ebf55ea0efeac72d57bcba91bb9f6d6ee6d Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Wed, 4 Nov 2020 13:41:29 +0100 Subject: [PATCH] fix(emqx): Fix dialyzer warnings --- src/emqx.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emqx.erl b/src/emqx.erl index 2c6d444e7..4e4a62396 100644 --- a/src/emqx.erl +++ b/src/emqx.erl @@ -86,7 +86,7 @@ restart(ConfFile) -> reload_config(ConfFile), shutdown(), ok = application:stop(mnesia), - application:start(mnesia), + _ = application:start(mnesia), reboot(). %% @doc Stop emqx application. @@ -205,8 +205,8 @@ shutdown() -> shutdown(Reason) -> ?LOG(critical, "emqx shutdown for ~s", [Reason]), - emqx_alarm_handler:unload(), - emqx_plugins:unload(), + _ = emqx_alarm_handler:unload(), + _ = emqx_plugins:unload(), lists:foreach(fun application:stop/1, [emqx, ekka, cowboy, ranch, esockd, gproc]). reboot() ->