Permalink
Browse files

Merge pull request #4 from lemenkov/fedora

Use lists:keysearch/3 instead of lists:keyfind/3.
  • Loading branch information...
2 parents de57ba7 + 83e9d61 commit a119cb9a39f94254247962bce4616b6f607cca80 @abecciu committed Jun 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gen_leader.erl
View
@@ -1443,8 +1443,8 @@ mon_handle_req({monitor, P}, From, Refs) ->
{_Name, N} -> N;
Pid when is_pid(Pid) -> node(Pid)
end,
- case lists:keyfind(Node, 2, Refs) of
- {_, Ref} ->
+ case lists:keysearch(Node, 2, Refs) of
+ {value, {_, Ref}} ->
mon_reply(From, {Ref,Node}),
Refs;
false ->

0 comments on commit a119cb9

Please sign in to comment.