Skip to content

Commit 02ad93c

Browse files
Update start_link function
1 parent facd45e commit 02ad93c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/split/supervisor.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ defmodule Split.Supervisor do
1111
{:ok, init_arg}
1212
end
1313

14+
@spec start_link() :: Supervisor.on_start()
1415
@spec start_link(Split.options()) :: Supervisor.on_start()
15-
def start_link(opts) do
16+
def start_link(opts \\ []) do
1617
child = {Pool, opts}
1718
Supervisor.start_link([child], strategy: :one_for_one)
1819
end

0 commit comments

Comments
 (0)