From 4a1ef5700f4348731f73b3707e0379e9ca2f0196 Mon Sep 17 00:00:00 2001 From: Satya Syahputra <46707024+satyasyahputra@users.noreply.github.com> Date: Wed, 24 Aug 2022 14:33:52 +0700 Subject: [PATCH 1/2] fix warning crypto --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index a1172d5..dbac462 100644 --- a/mix.exs +++ b/mix.exs @@ -20,7 +20,7 @@ defmodule Xlsxir.Mixfile do def application do [ mod: {Xlsxir, []}, - extra_applications: [:logger] + extra_applications: [:logger, :crypto] ] end 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 2/2] 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__]