Skip to content

Commit

Permalink
Don't require bunny client library at code load time
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed May 10, 2024
1 parent d1b32b2 commit 6bc6fbb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'bunny'

# Listens to RabbitMQ events
class ManageIQ::Providers::Vmware::CloudManager::EventCatcher::Stream
include Vmdb::Logging
Expand All @@ -22,6 +20,7 @@ def self.test_amqp_connection(options = {})
end

def self.connect(connection_options = {})
require 'bunny'
Bunny.new(connection_options)
end

Expand Down Expand Up @@ -70,6 +69,7 @@ def connection
end

def initialize_queues(channel)
require 'bunny'
@queues = {}
@options[:queues].each do |queue_name|
begin
Expand Down

0 comments on commit 6bc6fbb

Please sign in to comment.