Permalink
Browse files

Fixes suggested by Dialyzer

  • Loading branch information...
1 parent 96da825 commit 90694ce010658e24d3afd21a27188acf6e28d9d5 @puzza007 puzza007 committed Aug 6, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −3 src/gproc.erl
  2. +1 −1 src/gproc_dist.erl
View
@@ -818,9 +818,7 @@ nb_wait1(_) ->
?THROW_GPROC_ERROR(badarg).
nb_wait1(Node, {n,l,_} = Key) when is_atom(Node) ->
- call(Node, {await, Key, self()}, l);
-nb_wait1(_, _) ->
- ?THROW_GPROC_ERROR(badarg).
+ call(Node, {await, Key, self()}, l).
%% @spec cancel_wait(Key::key(), Ref) -> ok
View
@@ -701,7 +701,7 @@ update_counter_g({c,g,_} = Key, {Incr, Threshold, SetValue}, Pid)
[Prev, New] = ets:update_counter(?TAB, {Key, Pid},
[{3, 0}, {3, Incr, Threshold, SetValue}]),
update_aggr_counter(Key, New - Prev, [{{Key,Pid},Pid,New}]);
-update_counter_g({c,l,_} = Key, Ops, Pid) when is_list(Ops) ->
+update_counter_g({c,g,_} = Key, Ops, Pid) when is_list(Ops) ->
case ets:update_counter(?TAB, {Key, Pid},
[{3, 0} | expand_ops(Ops)]) of
[_] ->

0 comments on commit 90694ce

Please sign in to comment.