Made a more proper supervisor tree for the app
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user