Use splat operator instead of array-wrapping
This commit is contained in:
parent
129278fa57
commit
52b67313cc
|
@ -23,8 +23,7 @@ module Burlesque
|
|||
res.body == OK
|
||||
end
|
||||
|
||||
def subscribe queues
|
||||
queues = Array(queues)
|
||||
def subscribe *queues
|
||||
req = Net::HTTP::Get.new("#{SUB_ENDPOINT}?queues=#{queues.join(?,)}")
|
||||
|
||||
begin
|
||||
|
|
Loading…
Reference in New Issue