summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-09-15 16:43:05 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2010-09-15 16:43:05 +0100
commita7e36d635b4dab45320cd4744d8e0f3be5c946df (patch)
treecbf68389136c042fbd0163e6f5ed2a49a27780d3
parent5f1615728eb051b7b13a1824fb824c5d1b2ec3e9 (diff)
downloadrabbitmq-server-a7e36d635b4dab45320cd4744d8e0f3be5c946df.tar.gz
No sense in not using the full wordbug23157
-rw-r--r--src/gen_server2.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gen_server2.erl b/src/gen_server2.erl
index 8e35fd10..e2bb940f 100644
--- a/src/gen_server2.erl
+++ b/src/gen_server2.erl
@@ -1100,9 +1100,9 @@ find_prioritisers(GS2State = #gs2_state { mod = Mod }) ->
prioritise_cast = PrioriCast,
prioritise_info = PrioriInfo }.
-function_exported_or_default(Mod, Fun, Ar, Default) ->
- case erlang:function_exported(Mod, Fun, Ar) of
- true -> case Ar of
+function_exported_or_default(Mod, Fun, Arity, Default) ->
+ case erlang:function_exported(Mod, Fun, Arity) of
+ true -> case Arity of
2 -> fun (Msg, GS2State = #gs2_state { state = State }) ->
case catch Mod:Fun(Msg, State) of
Res when is_integer(Res) ->