We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a0ad6a commit 614073eCopy full SHA for 614073e
lib/worker.ex
@@ -27,7 +27,7 @@ defmodule Spotter.Worker do
27
end
28
29
def start_link() do
30
- GenServer.start_link(__MODULE__, %{config: config()})
+ GenServer.start_link(__MODULE__, %{config: config(), opts: []})
31
32
33
def start_link(opts) do
@@ -44,7 +44,8 @@ defmodule Spotter.Worker do
44
@connection.configure_channel(@channel_name, opts[:config])
45
46
channel = get_channel()
47
- {:ok, [channel: channel, meta: configure(channel, opts[:opts])]}
+ {:ok, custom} = configure(channel, opts[:opts])
48
+ {:ok, [channel: channel, meta: custom]}
49
50
51
0 commit comments