diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2012-05-16 16:23:41 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-05-16 16:23:41 +0100 |
commit | eb2d3d2bd26d05200e498a662e64be3c1d799f7e (patch) | |
tree | c0e34fabb1b4e7396b6c82c3f8e68e3daf154e55 | |
parent | 21dcf35dea4393875cee702d6a5ea22f59ee4cd6 (diff) | |
download | rabbitmq-server-eb2d3d2bd26d05200e498a662e64be3c1d799f7e.tar.gz |
cosmetic
-rw-r--r-- | src/rabbit_sup.erl | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/rabbit_sup.erl b/src/rabbit_sup.erl index 9cf3a1fd..100312de 100644 --- a/src/rabbit_sup.erl +++ b/src/rabbit_sup.erl @@ -43,19 +43,17 @@ %%---------------------------------------------------------------------------- -start_link() -> - supervisor:start_link({local, ?SERVER}, ?MODULE, []). +start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). -start_child(Mod) -> - start_child(Mod, []). +start_child(Mod) -> start_child(Mod, []). -start_child(Mod, Args) -> - start_child(Mod, Mod, Args). +start_child(Mod, Args) -> start_child(Mod, Mod, Args). start_child(ChildId, Mod, Args) -> - child_reply(supervisor:start_child(?SERVER, - {ChildId, {Mod, start_link, Args}, - transient, ?MAX_WAIT, worker, [Mod]})). + child_reply(supervisor:start_child( + ?SERVER, + {ChildId, {Mod, start_link, Args}, + transient, ?MAX_WAIT, worker, [Mod]})). start_restartable_child(Mod) -> start_restartable_child(Mod, []). @@ -74,8 +72,7 @@ stop_child(ChildId) -> E -> E end. -init([]) -> - {ok, {{one_for_all, 0, 1}, []}}. +init([]) -> {ok, {{one_for_all, 0, 1}, []}}. %%---------------------------------------------------------------------------- |