dotfiles/app/lib/prymn/messaging/connection_supervisor.ex

17 lines
349 B
Elixir
Raw Normal View History

2024-02-01 15:34:26 +00:00
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