fix(emqx_app): Dialyzer warnings
This commit is contained in:
parent
3fb69cc407
commit
0eb697fa6f
|
@ -34,18 +34,18 @@ start(_Type, _Args) ->
|
||||||
{ok, Sup} = emqx_sup:start_link(),
|
{ok, Sup} = emqx_sup:start_link(),
|
||||||
ok = emqx_modules:load(),
|
ok = emqx_modules:load(),
|
||||||
ok = emqx_plugins:init(),
|
ok = emqx_plugins:init(),
|
||||||
emqx_plugins:load(),
|
_ = emqx_plugins:load(),
|
||||||
emqx_boot:is_enabled(listeners)
|
emqx_boot:is_enabled(listeners)
|
||||||
andalso (ok = emqx_listeners:start()),
|
andalso (ok = emqx_listeners:start()),
|
||||||
start_autocluster(),
|
start_autocluster(),
|
||||||
register(emqx, self()),
|
register(emqx, self()),
|
||||||
emqx_alarm_handler:load(),
|
ok = emqx_alarm_handler:load(),
|
||||||
print_vsn(),
|
print_vsn(),
|
||||||
{ok, Sup}.
|
{ok, Sup}.
|
||||||
|
|
||||||
-spec(stop(State :: term()) -> term()).
|
-spec(stop(State :: term()) -> term()).
|
||||||
stop(_State) ->
|
stop(_State) ->
|
||||||
emqx_alarm_handler:unload(),
|
ok = emqx_alarm_handler:unload(),
|
||||||
emqx_boot:is_enabled(listeners)
|
emqx_boot:is_enabled(listeners)
|
||||||
andalso emqx_listeners:stop(),
|
andalso emqx_listeners:stop(),
|
||||||
emqx_modules:unload().
|
emqx_modules:unload().
|
||||||
|
|
|
@ -59,7 +59,7 @@ init() ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% @doc Load all plugins when the broker started.
|
%% @doc Load all plugins when the broker started.
|
||||||
-spec(load() -> list() | {error, term()}).
|
-spec(load() -> ok | ignore | {error, term()}).
|
||||||
load() ->
|
load() ->
|
||||||
load_expand_plugins(),
|
load_expand_plugins(),
|
||||||
case emqx:get_env(plugins_loaded_file) of
|
case emqx:get_env(plugins_loaded_file) of
|
||||||
|
|
Loading…
Reference in New Issue