diff options
author | Tim Watson <watson.timothy@gmail.com> | 2014-03-17 19:52:29 +0000 |
---|---|---|
committer | Tim Watson <watson.timothy@gmail.com> | 2014-03-17 19:52:29 +0000 |
commit | 8fb1d1ea7f3b35ad9e1fb89548d1af91db275ef9 (patch) | |
tree | 6a6784741fc963c223d6deba64d82990999ddc9b /src/rabbit.erl | |
parent | c9fe82719f7ed3329bc3356ac36ae04c54db1156 (diff) | |
download | rabbitmq-server-8fb1d1ea7f3b35ad9e1fb89548d1af91db275ef9.tar.gz |
Refactor (inline a little bit more)
app_utils:which_applications/0 => inlined,
rabbit_misc:all_module_attributes{_with_app} => unified
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r-- | src/rabbit.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 3d043b50..9b827d83 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -543,8 +543,8 @@ run_step(StepName, Attributes, AttributeName) -> end. load_steps(BaseApps) -> - Apps = BaseApps -- app_utils:which_applications(), %% exclude running apps - StepAttrs = rabbit_misc:all_module_attributes_with_app(rabbit_boot_step), + Apps = BaseApps -- [App || {App, _, _} <- rabbit_misc:which_applications()], + StepAttrs = rabbit_misc:all_module_attributes(rabbit_boot_step), {AllSteps, StepsDict} = lists:foldl( fun({AppName, Mod, Steps}, {AccSteps, AccDict}) -> |