summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-05-03 16:37:29 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-05-03 16:37:29 +0100
commit11a82c68762e25b38c3f170cf8145d1c134c83f1 (patch)
tree700786250fffe1eb5be8fc9c8e5d3b6ae2c2d323
parenta6f57039e67ed59d6eb8403aaca4afe8b75229cb (diff)
downloadrabbitmq-server-11a82c68762e25b38c3f170cf8145d1c134c83f1.tar.gz
cosmetic
-rw-r--r--src/mirrored_supervisor.erl19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/mirrored_supervisor.erl b/src/mirrored_supervisor.erl
index 135279a9..8f37525d 100644
--- a/src/mirrored_supervisor.erl
+++ b/src/mirrored_supervisor.erl
@@ -225,11 +225,8 @@ which_children(Sup) -> fold(which_children, Sup, fun lists:append/2).
count_children(Sup) -> fold(count_children, Sup, fun add_proplists/2).
check_childspecs(Specs) -> ?SUPERVISOR:check_childspecs(Specs).
-call(Sup, Msg) ->
- ?GEN_SERVER:call(mirroring(Sup), Msg, infinity).
-
-cast(Sup, Msg) ->
- ?GEN_SERVER:cast(mirroring(Sup), Msg).
+call(Sup, Msg) -> ?GEN_SERVER:call(mirroring(Sup), Msg, infinity).
+cast(Sup, Msg) -> ?GEN_SERVER:cast(mirroring(Sup), Msg).
find_call(Sup, Id, Msg) ->
Group = call(Sup, group),
@@ -389,8 +386,7 @@ code_change(_OldVsn, State, _Extra) ->
%%----------------------------------------------------------------------------
tell_all_peers_to_die(Group, Reason) ->
- [cast(P, {die, Reason}) ||
- P <- ?PG2:get_members(Group) -- [self()]].
+ [cast(P, {die, Reason}) || P <- ?PG2:get_members(Group) -- [self()]].
maybe_start(Group, Overall, Delegate, ChildSpec) ->
case mnesia:transaction(
@@ -418,10 +414,8 @@ check_start(Group, Overall, Delegate, ChildSpec) ->
end
end.
-supervisor(Pid) ->
- with_exit_handler(
- fun() -> dead end,
- fun() -> delegate(Pid) end).
+supervisor(Pid) -> with_exit_handler(fun() -> dead end,
+ fun() -> delegate(Pid) end).
write(Group, Overall, ChildSpec) ->
ok = mnesia:write(
@@ -471,8 +465,7 @@ errors(Results) -> [E || {error, E} <- Results].
%%----------------------------------------------------------------------------
-create_tables() ->
- create_tables([?TABLE_DEF]).
+create_tables() -> create_tables([?TABLE_DEF]).
create_tables([]) ->
ok;