Skip to content

Commit 5239c21

Browse files
Use Bolt.Sips approach to read app config
I had troubles getting a connection: each time the server would complain about authentication. The approach on https://hexdocs.pm/bolt_sips/Bolt.Sips.html#start_link/1, with the options loaded from the configuration, showed that 2 of my option sets were mixed up.
1 parent e80616f commit 5239c21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ $ MIX_ENV=test iex -S mix
139139
Erlang/OTP 20 [erts-9.1.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
140140

141141
Interactive Elixir (1.5.2) - press Ctrl+C to exit (type h() ENTER for help)
142-
iex> {:ok, pid} = Bolt.Sips.start_link(url: "localhost")
142+
iex> opts = Application.get_env(:bolt_sips, Bolt)
143+
iex> {:ok, _pid} = Bolt.Sips.start_link(opts)
143144
{:ok, #PID<0.185.0>}
144145

145146
iex> conn = Bolt.Sips.conn

0 commit comments

Comments
 (0)