defmodule Money.ExchangeRates.Supervisor do @moduledoc false use Supervisor alias Money.ExchangeRates def start_link do Supervisor.start_link(__MODULE__, :ok, name: ExchangeRates.Supervisor) end def init(:ok) do children = [ worker(ExchangeRates.Retriever, [ExchangeRates.Retriever, ExchangeRates.config]) ] supervise(children, strategy: :one_for_one) end end