Skip to content

Commit

Permalink
update worker supervisor spec
Browse files Browse the repository at this point in the history
  • Loading branch information
satyasyahputra authored Aug 24, 2022
1 parent 4a1ef57 commit 30cb718
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/xlsxir.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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__]
Expand Down

0 comments on commit 30cb718

Please sign in to comment.