diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2012-05-03 16:37:29 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-05-03 16:37:29 +0100 |
| commit | c082306909af0ac9b5cfdc4cb6da8f68cec9d667 (patch) | |
| tree | 700786250fffe1eb5be8fc9c8e5d3b6ae2c2d323 | |
| parent | 8670a5f33b9f45af4a23d46e1d0f1af39c208c9d (diff) | |
| download | rabbitmq-server-git-c082306909af0ac9b5cfdc4cb6da8f68cec9d667.tar.gz | |
cosmetic
| -rw-r--r-- | src/mirrored_supervisor.erl | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/mirrored_supervisor.erl b/src/mirrored_supervisor.erl index 135279a92c..8f37525dd4 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; |
