mirror of
https://github.com/ditkrg/rabbit_carrots.git
synced 2026-01-22 13:56:41 +00:00
Uses the correct class for connection
This commit is contained in:
parent
d032754f11
commit
7ad8ae050d
@ -29,7 +29,7 @@ namespace :rmq do
|
||||
end
|
||||
|
||||
def run_task(queue_name:, handler_class:, routing_keys:)
|
||||
RabbitConnection.instance.channel.with do |channel|
|
||||
RabbitCarrots::Connection.instance.channel.with do |channel|
|
||||
exchange = channel.topic(RabbitCarrots.configuration.event_bus_exchange_name, durable: true)
|
||||
|
||||
Rails.logger.info "Listening on QUEUE: #{queue_name} for ROUTING KEYS: #{routing_keys}"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module RabbitCarrots
|
||||
VERSION = "0.1.7"
|
||||
VERSION = "0.1.8"
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user