Made a more proper supervisor tree for the app

This commit is contained in:
2026-01-31 00:37:23 +02:00
parent dd134a632c
commit 993bc51240
4 changed files with 54 additions and 29 deletions
@@ -0,0 +1,18 @@
defmodule NeonVertigoService.Mqtt.Supervisor do
use Supervisor
def start_link(init_arg) do
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
end
# Callbacks
@impl true
def init(_init_arg) do
children = [
NeonVertigoService.Mqtt.Service
]
Supervisor.init(children, strategy: :one_for_all)
end
end