mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-24 04:37:14 +01:00
17 lines
406 B
Elixir
17 lines
406 B
Elixir
defmodule Philomena.MnesiaClusterSupervisor 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
|
|
children = [
|
|
{Pow.Store.Backend.MnesiaCache, extra_db_nodes: Node.list()},
|
|
Pow.Store.Backend.MnesiaCache.Unsplit
|
|
]
|
|
|
|
Supervisor.init(children, strategy: :one_for_one)
|
|
end
|
|
end
|