From 30cb7185b3d7c52fbe0c3e73928214d16ecd76ae Mon Sep 17 00:00:00 2001 From: Satya Syahputra <46707024+satyasyahputra@users.noreply.github.com> Date: Wed, 24 Aug 2022 14:38:23 +0700 Subject: [PATCH] update worker supervisor spec --- lib/xlsxir.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/xlsxir.ex b/lib/xlsxir.ex index 47183e2..2b840fa 100644 --- a/lib/xlsxir.ex +++ b/lib/xlsxir.ex @@ -4,10 +4,9 @@ defmodule Xlsxir do use Application def start(_type, _args) do - import Supervisor.Spec children = [ - worker(Xlsxir.StateManager, []) + %{id: Xlsxir.StateManager, start: {Xlsxir.StateManager, :start_link, []}, type: :worker} ] opts = [strategy: :one_for_one, name: __MODULE__]