Deduplicate returned identities

This commit is contained in:
bluepython508
2024-09-26 12:58:43 +01:00
parent 6944ff05e0
commit 85bf788307

View File

@@ -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