fix: Add ClusterSupervisor to supervision tree
This commit is contained in:
parent
734d7eb4e8
commit
19cf61c84a
2 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,10 @@ defmodule Legendary.Core.Application do
|
|||
use Application
|
||||
|
||||
def start(_type, _args) do
|
||||
topologies = Application.get_env(:libcluster, :topologies)
|
||||
|
||||
children = [
|
||||
{Cluster.Supervisor, [topologies, [name: Legendary.Core.ClusterSupervisor]]},
|
||||
# Start the Ecto repository
|
||||
Legendary.Core.Repo,
|
||||
# Start the Telemetry supervisor
|
||||
|
|
|
@ -76,7 +76,7 @@ config :app,
|
|||
config :libcluster,
|
||||
topologies: [
|
||||
local_epmd: [
|
||||
Elixir.Cluster.Strategy.LocalEpmd
|
||||
strategy: Elixir.Cluster.Strategy.LocalEpmd
|
||||
]
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in a new issue