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 | ea345d9a3010edcee30673891191ae8ad3607de3 (patch) | |
| tree | c0e34fabb1b4e7396b6c82c3f8e68e3daf154e55 | |
| parent | b4787d760abca28c9dff4cd74327a4b2b92656dd (diff) | |
| download | rabbitmq-server-git-ea345d9a3010edcee30673891191ae8ad3607de3.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 9cf3a1fd55..100312deee 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}, []}}. %%---------------------------------------------------------------------------- |
