Skip to content

Commit

Permalink
Fixes suggested by Dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
puzza007 committed Aug 6, 2012
1 parent 96da825 commit 90694ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/gproc.erl
Expand Up @@ -818,9 +818,7 @@ nb_wait1(_) ->
?THROW_GPROC_ERROR(badarg). ?THROW_GPROC_ERROR(badarg).


nb_wait1(Node, {n,l,_} = Key) when is_atom(Node) -> nb_wait1(Node, {n,l,_} = Key) when is_atom(Node) ->
call(Node, {await, Key, self()}, l); call(Node, {await, Key, self()}, l).
nb_wait1(_, _) ->
?THROW_GPROC_ERROR(badarg).




%% @spec cancel_wait(Key::key(), Ref) -> ok %% @spec cancel_wait(Key::key(), Ref) -> ok
Expand Down
2 changes: 1 addition & 1 deletion src/gproc_dist.erl
Expand Up @@ -701,7 +701,7 @@ update_counter_g({c,g,_} = Key, {Incr, Threshold, SetValue}, Pid)
[Prev, New] = ets:update_counter(?TAB, {Key, Pid}, [Prev, New] = ets:update_counter(?TAB, {Key, Pid},
[{3, 0}, {3, Incr, Threshold, SetValue}]), [{3, 0}, {3, Incr, Threshold, SetValue}]),
update_aggr_counter(Key, New - Prev, [{{Key,Pid},Pid,New}]); 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}, case ets:update_counter(?TAB, {Key, Pid},
[{3, 0} | expand_ops(Ops)]) of [{3, 0} | expand_ops(Ops)]) of
[_] -> [_] ->
Expand Down

0 comments on commit 90694ce

Please sign in to comment.