Skip to content

Commit

Permalink
The worker/2 function from the Supervisor.Spec module is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
0dayfall committed Dec 28, 2023
1 parent 0eb56c2 commit 2285643
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/elixir_koans.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ defmodule ElixirKoans do
use Application

def start(_type, _args) do
import Supervisor.Spec

children = [
worker(Display, []),
worker(Tracker, []),
worker(Runner, []),
worker(Watcher, [])
{Display, []},
{Tracker, []},
{Runner, []},
{Watcher, []}
]

opts = [strategy: :one_for_one, name: ElixirKoans.Supervisor]
Expand Down

0 comments on commit 2285643

Please sign in to comment.