lib/zergrush_cf/init.rb in zergrush_cf-0.0.6 vs lib/zergrush_cf/init.rb in zergrush_cf-0.0.7

- old
+ new

@@ -234,10 +234,10 @@ params = eval_params(rabbitInfo) conn = Bunny.new(Hash[params["bunny_params"].map{ |k, v| [k.to_sym, v] }]) conn.start channel = conn.create_channel - exch = (params["exchange"] == nil) ? channel.default_echange : channel.direct(params["exchange"]["name"], Hash[params["exchange"]["params"].map{ |k, v| [k.to_sym, v] }]) + exch = (params["exchange"] == nil) ? channel.default_exchange : channel.direct(params["exchange"]["name"], Hash[params["exchange"]["params"].map{ |k, v| [k.to_sym, v] }]) channel.queue(params["queue"]["name"], Hash[params["queue"]["params"].map{ |k, v| [k.to_sym, v] }]).bind(exch) return { :connection => conn, :channel => channel, :exchange => exch } end