Deduplicate returned identities
This commit is contained in:
@@ -45,7 +45,7 @@ defmodule Frajtano.Agent do
|
||||
|
||||
{
|
||||
: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})
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user