forgot to check this in (fixes queue naming)

This commit is contained in:
Jordan Sissel 2010-11-11 09:02:35 +00:00
parent 75910bb656
commit 1213d77d94

View file

@ -31,11 +31,11 @@ class LogStash::Inputs::Amqp < LogStash::Inputs::Base
case @mqtype case @mqtype
when "fanout" when "fanout"
#@target.bind(MQ.fanout(@url.path, :durable => true)) #@target.bind(MQ.fanout(@url.path, :durable => true))
@target.bind(MQ.fanout(@url.path)) @target.bind(MQ.fanout(@name))
when "direct" when "direct"
@target.bind(MQ.direct(@url.path)) @target.bind(MQ.direct(@name))
when "topic" when "topic"
@target.bind(MQ.topic(@url.path)) @target.bind(MQ.topic(@name))
end # case @mqtype end # case @mqtype
@target.subscribe(:ack => true) do |header, message| @target.subscribe(:ack => true) do |header, message|