fix: Add ClusterSupervisor to supervision tree

This commit is contained in:
Robert Prehn 2021-05-18 15:27:38 -05:00
parent 734d7eb4e8
commit 19cf61c84a
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -76,7 +76,7 @@ config :app,
config :libcluster,
topologies: [
local_epmd: [
Elixir.Cluster.Strategy.LocalEpmd
strategy: Elixir.Cluster.Strategy.LocalEpmd
]
]