Skip to content

Commit

Permalink
Fix Producer.get_connections when pid is passed in.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxPower15 committed Dec 8, 2015
1 parent 6d0f5d0 commit d64f8ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nsq/producer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ defmodule NSQ.Producer do
@spec get_connections(pid, pro_state) :: [connection]
def get_connections(pro, pro_state \\ nil) when is_pid(pro) do
pro_state = pro_state || get_state(pro)
Supervisor.which_children(pro_state.conn_sup_pid)
get_connections(pro_state)
end

@spec random_connection_pid(pro_state) :: pid
Expand Down

0 comments on commit d64f8ce

Please sign in to comment.