Current section
Files
Jump to
Current section
Files
lib/cadet/supervisor.ex
defmodule Cadet.Supervisor do
use Supervisor
def start_link(_args) do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
@impl true
def init(_args) do
children = [
Cadet.Supervisor
]
opts = [strategy: :one_for_one, name: __MODULE__]
Supervisor.init(children, opts)
end
end