Current section

Files

Jump to
line_drive lib line_drive application.ex
Raw

lib/line_drive/application.ex

defmodule LineDrive.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
@impl true
def start(_type, _args) do
children = [
# Starts a worker by calling: LineDrive.Worker.start_link(arg)
# {LineDrive.Worker, arg}
{Registry, keys: :duplicate, name: Registry.LineDriveEvents, id: Registry.LineDriveEvents}
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: LineDrive.Supervisor]
Supervisor.start_link(children, opts)
end
end