Permalink
Browse files

Merge pull request #17 from DonHub/master

queue_name option support for gen_qserver
  • Loading branch information...
2 parents 1174f33 + 81b0722 commit d686b877bdceb4426fe14f8832e0dc0cef15d987 Brian Lee Yung Rowe committed May 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/bunny_farm.erl
View
@@ -173,7 +173,7 @@ declare_queue(#bus_handle{}=BusHandle, Options) when is_list(Options) ->
declare_queue(<<"">>, BusHandle, Options).
declare_queue(Key, #bus_handle{channel=Channel}, Options) ->
- AllOptions = lists:merge([{queue,Key}], Options),
+ AllOptions = lists:keymerge(1, lists:sort(Options), [{queue,Key}]),
QueueDeclare = farm_tools:to_queue_declare(AllOptions),
#'queue.declare_ok'{queue=Q} = amqp_channel:call(Channel, QueueDeclare),
Q.

0 comments on commit d686b87

Please sign in to comment.