summaryrefslogtreecommitdiff
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
commit9a09377dab3b69d61b6f7f851c9a4526b46cd18d (patch)
treedb7d834f86d62072c1050694f708ffc6967027b3
parenteb2d3d2bd26d05200e498a662e64be3c1d799f7e (diff)
downloadrabbitmq-server-9a09377dab3b69d61b6f7f851c9a4526b46cd18d.tar.gz
cosmetic
-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 8eacb1f3..b2e83803 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 100312de..ecc4d816 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"),