Skip to content

Commit

Permalink
Merge pull request #10 from bluecodecom/pr/deprecation_warning_II
Browse files Browse the repository at this point in the history
fix deprecation warning II
  • Loading branch information
predrag-rakic authored Mar 2, 2021
2 parents 551bff0 + b502f5c commit e9987ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mixpanel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule Mixpanel do

def init(config) do
children = [
{Mixpanel.Client, [config, [name: get_process_name()]]}
{Mixpanel.Client, Enum.into(config, [name: get_process_name()])}
]

Supervisor.init(children, strategy: :one_for_one)
Expand Down
4 changes: 2 additions & 2 deletions lib/mixpanel/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ defmodule Mixpanel.Client do
max_idle: 500
}

def start_link(config, opts \\ []) do
GenServer.start_link(__MODULE__, {:ok, config}, opts)
def start_link(config) do
GenServer.start_link(__MODULE__, {:ok, config}, config)
end

@doc """
Expand Down

0 comments on commit e9987ea

Please sign in to comment.