Sfoglia il codice sorgente

fix(emqx): Fix dialyzer warnings

Zaiming Shi 5 anni fa
parent
commit
d4aa5ebf55
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/emqx.erl

+ 3 - 3
src/emqx.erl

@@ -86,7 +86,7 @@ restart(ConfFile) ->
     reload_config(ConfFile),
     reload_config(ConfFile),
     shutdown(),
     shutdown(),
     ok = application:stop(mnesia),
     ok = application:stop(mnesia),
-    application:start(mnesia),
+    _ = application:start(mnesia),
     reboot().
     reboot().
 
 
 %% @doc Stop emqx application.
 %% @doc Stop emqx application.
@@ -205,8 +205,8 @@ shutdown() ->
 
 
 shutdown(Reason) ->
 shutdown(Reason) ->
     ?LOG(critical, "emqx shutdown for ~s", [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]).
     lists:foreach(fun application:stop/1, [emqx, ekka, cowboy, ranch, esockd, gproc]).
 
 
 reboot() ->
 reboot() ->