mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-05-01 23:10:30 +00:00
18 lines
395 B
Elixir
18 lines
395 B
Elixir
defmodule WandererApp.Character.TrackerSupervisor do
|
|
@moduledoc false
|
|
use Supervisor, restart: :transient
|
|
|
|
alias WandererApp.Character.Tracker
|
|
|
|
def start_link(args), do: Supervisor.start_link(__MODULE__, args)
|
|
|
|
@impl true
|
|
def init(args) do
|
|
children = [
|
|
{Tracker, args}
|
|
]
|
|
|
|
Supervisor.init(children, strategy: :one_for_one, auto_shutdown: :all_significant)
|
|
end
|
|
end
|