Skip to content

Commit

Permalink
fix: configuring the start_link opts without global config (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis authored Jun 6, 2023
1 parent 6b676d0 commit da51387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spear/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ defmodule Spear.Client do
{:ok, otp_app} ->
quote do
def start_link(args) do
Application.get_env(unquote(otp_app), __MODULE__)
Application.get_env(unquote(otp_app), __MODULE__, [])
|> Keyword.merge(args)
|> Keyword.put(:name, __MODULE__)
|> Spear.Connection.start_link()
Expand Down

0 comments on commit da51387

Please sign in to comment.