mirror of
https://github.com/ditkrg/rabbit_carrots.git
synced 2026-01-25 07:06:39 +00:00
Update tests
This commit is contained in:
@@ -4,7 +4,7 @@ module RabbitCarrots
|
||||
class Connection
|
||||
include ::Singleton
|
||||
attr_reader :connection
|
||||
|
||||
|
||||
def initialize
|
||||
@connection = Bunny.new(
|
||||
host: RabbitCarrots.configuration.rabbitmq_host,
|
||||
@@ -16,11 +16,11 @@ module RabbitCarrots
|
||||
|
||||
@connection.start
|
||||
end
|
||||
|
||||
|
||||
def channel
|
||||
@channel ||= ConnectionPool.new do
|
||||
connection.create_channel
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user