dotfiles/app/lib/prymn/messaging/connection_supervisor.ex
2024-02-01 17:34:26 +02:00

16 lines
349 B
Elixir

defmodule Prymn.Messaging.ConnectionSupervisor do
use Supervisor, restart: :permanent
def start_link([]) do
Supervisor.start_link(__MODULE__, [], name: __MODULE__)
end
@impl true
def init(_init_arg) do
children = [
{Prymn.Messaging.Connection, :nats1}
]
Supervisor.init(children, strategy: :one_for_one)
end
end