Deduplicate sockets by path

This commit is contained in:
bluepython508 committed 2024-09-22 12:56:29 +01:00
1 parent c3c80b716c
commit 0172c68e09
3 files changed
+34 -33

No files matched your search

+2 -1
View File
@@ -17,7 +17,8 @@ defmodule Frajtano.Supervisor do
@impl true
def init(:ok) do
children = [
{DynamicSupervisor, name: Frajtano.Peer},
{DynamicSupervisor, name: Frajtano.PeerSupervisor},
{Registry, keys: :unique, name: Frajtano.Peers},
Frajtano.Agent,
{Task.Supervisor, name: Frajtano.ClientSupervisor},
{Frajtano.Listener, [Application.fetch_env!(:frajtano, :listen_path)]},