mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
17 lines
342 B
Elixir
17 lines
342 B
Elixir
defmodule Philomena.ExqSupervisor do
|
|
use Supervisor
|
|
|
|
def start_link(init_arg) do
|
|
Supervisor.start_link(__MODULE__, init_arg, name: __MODULE__)
|
|
end
|
|
|
|
@impl true
|
|
def init(_init_arg) do
|
|
child_spec = %{
|
|
id: Exq,
|
|
start: {Exq, :start_link, []}
|
|
}
|
|
|
|
Supervisor.init([child_spec], strategy: :one_for_one)
|
|
end
|
|
end
|