16 lines
349 B
Elixir
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
|