Deduplicate returned identities
This commit is contained in:
@@ -45,7 +45,7 @@ defmodule Frajtano.Agent do
|
|||||||
|
|
||||||
{
|
{
|
||||||
:reply,
|
:reply,
|
||||||
{:ok, Enum.flat_map(idents, &elem(&1, 0))},
|
{:ok, idents |> Enum.flat_map(&elem(&1, 0)) |> Enum.uniq},
|
||||||
for({idents, peer} <- idents, {key, _comment} <- idents, into: %{}, do: {key, peer})
|
for({idents, peer} <- idents, {key, _comment} <- idents, into: %{}, do: {key, peer})
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user