Current section

Files

Jump to
mdns lib mdns supervisor.ex
Raw

lib/mdns/supervisor.ex

defmodule Mdns.Supervisor do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
def init(:ok) do
children = [
supervisor(Registry, [:duplicate, Mdns.EventManager.Registry, []]),
worker(Mdns.EventManager, []),
worker(Mdns.Client, []),
worker(Mdns.Server, [])
]
supervise(children, strategy: :one_for_one)
end
end