refactor: delete dead code
This commit is contained in:
parent
31e54d0598
commit
51cd83e70f
|
@ -43,7 +43,7 @@ start() ->
|
||||||
start_sysmon(),
|
start_sysmon(),
|
||||||
configure_shard_transports(),
|
configure_shard_transports(),
|
||||||
ekka:start(),
|
ekka:start(),
|
||||||
ok = print_otp_version_warning().
|
ok.
|
||||||
|
|
||||||
graceful_shutdown() ->
|
graceful_shutdown() ->
|
||||||
emqx_machine_terminator:graceful_wait().
|
emqx_machine_terminator:graceful_wait().
|
||||||
|
@ -61,17 +61,6 @@ set_backtrace_depth() ->
|
||||||
is_ready() ->
|
is_ready() ->
|
||||||
emqx_machine_terminator:is_running().
|
emqx_machine_terminator:is_running().
|
||||||
|
|
||||||
-if(?OTP_RELEASE > 22).
|
|
||||||
print_otp_version_warning() -> ok.
|
|
||||||
-else.
|
|
||||||
print_otp_version_warning() ->
|
|
||||||
?ULOG(
|
|
||||||
"WARNING: Running on Erlang/OTP version ~p. Recommended: 23~n",
|
|
||||||
[?OTP_RELEASE]
|
|
||||||
).
|
|
||||||
% OTP_RELEASE > 22
|
|
||||||
-endif.
|
|
||||||
|
|
||||||
start_sysmon() ->
|
start_sysmon() ->
|
||||||
_ = application:load(system_monitor),
|
_ = application:load(system_monitor),
|
||||||
application:set_env(system_monitor, node_status_fun, {?MODULE, node_status}),
|
application:set_env(system_monitor, node_status_fun, {?MODULE, node_status}),
|
||||||
|
|
Loading…
Reference in New Issue