summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-05-16 17:08:03 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-05-16 17:08:03 +0100
commit9fef6e6b144a9f5e96d20c8e0ab46ee10131c59d (patch)
treedb7d834f86d62072c1050694f708ffc6967027b3 /src
parentea345d9a3010edcee30673891191ae8ad3607de3 (diff)
downloadrabbitmq-server-git-9fef6e6b144a9f5e96d20c8e0ab46ee10131c59d.tar.gz
cosmetic
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_mirror_queue_slave_sup.erl6
-rw-r--r--src/rabbit_sup.erl3
2 files changed, 3 insertions, 6 deletions
diff --git a/src/rabbit_mirror_queue_slave_sup.erl b/src/rabbit_mirror_queue_slave_sup.erl
index 8eacb1f3c4..b2e8380313 100644
--- a/src/rabbit_mirror_queue_slave_sup.erl
+++ b/src/rabbit_mirror_queue_slave_sup.erl
@@ -35,11 +35,9 @@ start() ->
transient, infinity, supervisor, [rabbit_mirror_queue_slave_sup]}),
ok.
-start_link() ->
- supervisor2:start_link({local, ?SERVER}, ?MODULE, []).
+start_link() -> supervisor2:start_link({local, ?SERVER}, ?MODULE, []).
-start_child(Node, Args) ->
- supervisor2:start_child({?SERVER, Node}, Args).
+start_child(Node, Args) -> supervisor2:start_child({?SERVER, Node}, Args).
init([]) ->
{ok, {{simple_one_for_one_terminate, 10, 10},
diff --git a/src/rabbit_sup.erl b/src/rabbit_sup.erl
index 100312deee..ecc4d816e0 100644
--- a/src/rabbit_sup.erl
+++ b/src/rabbit_sup.erl
@@ -55,8 +55,7 @@ start_child(ChildId, Mod, Args) ->
{ChildId, {Mod, start_link, Args},
transient, ?MAX_WAIT, worker, [Mod]})).
-start_restartable_child(Mod) ->
- start_restartable_child(Mod, []).
+start_restartable_child(Mod) -> start_restartable_child(Mod, []).
start_restartable_child(Mod, Args) ->
Name = list_to_atom(atom_to_list(Mod) ++ "_sup"),