From 62e8069080542559ea1ba196ae8d58c12805a4a0 Mon Sep 17 00:00:00 2001 From: Jeroen Visser Date: Mon, 22 Jun 2020 22:01:52 +0200 Subject: [PATCH] Add :name config option to Supervisor When starting Money.ExchangeRate.Supervisor with the `:restart` option, the supervisor is expected to be named. The option was dropped in v5.0.2 but is still required. --- lib/money/application.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/money/application.ex b/lib/money/application.ex index 891423e..1b5b945 100644 --- a/lib/money/application.ex +++ b/lib/money/application.ex @@ -10,7 +10,8 @@ defmodule Money.Application do Money.ExchangeRates.Supervisor ] - supervisor = Supervisor.start_link(children, strategy: :one_for_one) + opts = [strategy: :one_for_one, name: Money.Supervisor] + supervisor = Supervisor.start_link(children, opts) if start_exchange_rate_service?() do ExchangeRates.Supervisor.start_retriever()