fix(emqx_app): Dialyzer warnings

This commit is contained in:
Zaiming Shi 2020-11-04 17:20:54 +01:00
parent 3fb69cc407
commit 0eb697fa6f
3 changed files with 6 additions and 6 deletions

View File

@ -34,18 +34,18 @@ start(_Type, _Args) ->
{ok, Sup} = emqx_sup:start_link(),
ok = emqx_modules:load(),
ok = emqx_plugins:init(),
emqx_plugins:load(),
_ = emqx_plugins:load(),
emqx_boot:is_enabled(listeners)
andalso (ok = emqx_listeners:start()),
start_autocluster(),
register(emqx, self()),
emqx_alarm_handler:load(),
ok = emqx_alarm_handler:load(),
print_vsn(),
{ok, Sup}.
-spec(stop(State :: term()) -> term()).
stop(_State) ->
emqx_alarm_handler:unload(),
ok = emqx_alarm_handler:unload(),
emqx_boot:is_enabled(listeners)
andalso emqx_listeners:stop(),
emqx_modules:unload().

View File

@ -59,7 +59,7 @@ init() ->
end.
%% @doc Load all plugins when the broker started.
-spec(load() -> list() | {error, term()}).
-spec(load() -> ok | ignore | {error, term()}).
load() ->
load_expand_plugins(),
case emqx:get_env(plugins_loaded_file) of