ash_cubdb/lib/ash_cub_db/application.ex

18 lines
409 B
Elixir
Raw Normal View History

2023-08-07 15:13:01 +12:00
defmodule AshCubDB.Application do
@moduledoc false
use Application
2023-08-07 17:47:06 +12:00
@doc false
2023-08-07 15:13:01 +12:00
@impl true
def start(_type, _args) do
children = [
2023-08-07 17:47:06 +12:00
{DynamicSupervisor, strategy: :one_for_one, name: AshCubDB.DynamicSupervisor},
{Registry, keys: :unique, name: AshCubDB.Registry}
2023-08-07 15:13:01 +12:00
]
opts = [strategy: :one_for_one, name: AshCubDB.Supervisor]
Supervisor.start_link(children, opts)
end
end