From 1a555efc7362df680b0650c7d4261c8b1ab1d02c Mon Sep 17 00:00:00 2001 From: Pascal Jodlowski Date: Sun, 26 May 2024 00:54:23 +0200 Subject: [PATCH] :zap: add supervisor to snake manager --- lib/elixirus/application.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/elixirus/application.ex b/lib/elixirus/application.ex index 708c67a..70058f9 100644 --- a/lib/elixirus/application.ex +++ b/lib/elixirus/application.ex @@ -12,7 +12,10 @@ defmodule Elixirus.Application do ElixirusWeb.Telemetry, Elixirus.Healthcheck.HealthSupervisor, {Elixirus.Python.SnakeSupervisor, []}, - {Elixirus.Python.SnakeManager, []}, + Supervisor.child_spec({Elixirus.Python.SnakeManager, []}, + id: Elixirus.Python.SnakeManager, + restart: :permanent + ), Supervisor.child_spec({TokenWorker, :ets.new(:token_storage, [:set, :public])}, id: TokenWorker, restart: :permanent