Try to always restart in case of crashes

This commit is contained in:
Mikko Ahlroth 2021-11-04 20:25:19 +02:00
parent 6f3c8500a8
commit 623c570732

View file

@ -16,7 +16,7 @@ defmodule ExSpeedGame.Application do
def start(_type, _args) do def start(_type, _args) do
# See https://hexdocs.pm/elixir/Supervisor.html # See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options # for other strategies and supported options
opts = [strategy: :one_for_one, name: ExSpeedGame.Supervisor] opts = [strategy: :one_for_one, max_restarts: 1_000_000, name: ExSpeedGame.Supervisor]
children = children =
[ [