Fix undefined emqx_vm:schedulers/1

This commit is contained in:
Feng Lee 2018-07-19 10:19:25 +08:00
parent cbbc231210
commit 4297033415
3 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
{vsn,"3.0"}, {vsn,"3.0"},
{modules,[]}, {modules,[]},
{registered,[emqx_sup]}, {registered,[emqx_sup]},
{applications,[kernel, stdlib,jsx,gproc,gen_rpc,lager,ekka,esockd,mochiweb]}, {applications,[kernel,stdlib,jsx,gproc,gen_rpc,lager,esockd,mochiweb]},
{env,[]}, {env,[]},
{mod,{emqx_app,[]}}, {mod,{emqx_app,[]}},
{maintainers,["Feng Lee <feng@emqx.io>"]}, {maintainers,["Feng Lee <feng@emqx.io>"]},

View File

@ -31,7 +31,7 @@ spec(ChildId, Args) ->
-spec(start_link(atom() | tuple(), atom(), mfa()) -> {ok, pid()} | {error, term()}). -spec(start_link(atom() | tuple(), atom(), mfa()) -> {ok, pid()} | {error, term()}).
start_link(Pool, Type, MFA) -> start_link(Pool, Type, MFA) ->
start_link(Pool, Type, emqx_vm:schedulers(schedulers), MFA). start_link(Pool, Type, emqx_vm:schedulers(), MFA).
-spec(start_link(atom() | tuple(), atom(), pos_integer(), mfa()) -> {ok, pid()} | {error, term()}). -spec(start_link(atom() | tuple(), atom(), pos_integer(), mfa()) -> {ok, pid()} | {error, term()}).
start_link(Pool, Type, Size, MFA) when is_atom(Pool) -> start_link(Pool, Type, Size, MFA) when is_atom(Pool) ->

View File

@ -31,8 +31,7 @@ init([]) ->
type => worker, type => worker,
modules => [emqx_sys]}, modules => [emqx_sys]},
Sysmon = #{id => sys_mon, Sysmon = #{id => sys_mon,
start => {emqx_sys_mon, start_link, start => {emqx_sys_mon, start_link, [emqx_config:get_env(sysmon, [])]},
[emqx_config:get_env(sysmon, [])]},
restart => permanent, restart => permanent,
shutdown => 5000, shutdown => 5000,
type => worker, type => worker,