Hi,

Gonzalo just left the company (today was his last day) and I'm taking over
some of his Ruote responsibilities.

I'm having a problem with the latest Ruote-AMQP. I have the following in my
config.ru:

RuoteAMQP::Receiver.new(
RuoteKit.engine,
                :queue => 'ruote',
 :launchitems => true
)

However, it ends up creating the ruote_launchitems queue instead of the
ruote queue. I found the following in ruote-amqp/lib/ruote-amqp
/receiver.rb:75-77

      @queue =
        opts[:queue] ||
        @launchitems == :only ? 'ruote_launchitems' : 'ruote_workitems'

which basically ignores opts[:queue]. I fixed it to:

      @queue =
        opts[:queue] ||
        (@launchitems == :only ? 'ruote_launchitems' : 'ruote_workitems')

which seems to work, but I'm curious as to whether this is an actual bug or
if there's some reason for omitting the parentheses.

Thanks,
-Mario.

--
I want to change the world but they won't give me the source code.

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to