Current section
Files
Jump to
Current section
Files
lib/matchmaker/matchmaker_supervisor.ex
defmodule Garuda.Matchmaker.MatchmakerSupervisor do
@moduledoc false
# Supervises the core matchmaking process
use Supervisor
alias Garuda.MatchMaker.Matcher
def start_link(opts \\ []) do
Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
end
@impl true
def init(_opts) do
children = [
Matcher
]
Supervisor.init(children, strategy: :one_for_one)
end
end