Deduplicate sockets by path

This commit is contained in:
bluepython508
2024-09-21 17:16:23 +01:00
parent df2c942fd7
commit 998c7e32a1
3 changed files with 34 additions and 33 deletions

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)]},