Skip to content

Commit

Permalink
Merge pull request #11787 from zmstone/1018-refactor-improve-nodetool…
Browse files Browse the repository at this point in the history
…-performance

refactor(nodetool): only add libs when necessary
  • Loading branch information
zmstone committed Oct 18, 2023
2 parents 4c0bec1 + ad09ca9 commit f985f14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/nodetool
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ main(Args) ->
ok
end
end,
ok = add_libs_dir(),
case Args of
["hocon" | Rest] ->
ok = add_libs_dir(),
%% forward the call to hocon_cli
hocon_cli:main(Rest);
["check_license_key", Key0] ->
ok = add_libs_dir(),
Key = cleanup_key(Key0),
check_license(#{key => Key});
_ ->
Expand Down
3 changes: 3 additions & 0 deletions changes/ce/feat-11787.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Improve `emqx` command performance.

Avoid loading EMQX application code in `nodetool` script unless necessary.

0 comments on commit f985f14

Please sign in to comment.