aboutsummaryrefslogtreecommitdiff
path: root/lib/manager.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/manager.ex')
-rw-r--r--lib/manager.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/manager.ex b/lib/manager.ex
index f6910e4..7c6c849 100644
--- a/lib/manager.ex
+++ b/lib/manager.ex
@@ -94,7 +94,7 @@ defmodule Shard.Manager do
end
def handle_cast({:peer_up, pk, pid, ip, port}, state) do
- for {pk2, _, _, _} <- :ets.match(:peer_db, {:_, :_, ip, port}) do
+ for [pk2] <- :ets.match(:peer_db, {:'$1', :_, ip, port}) do
if pk2 != pk do
# obsolete peer information
:ets.delete(:peer_db, pk2)