From 49efe7bddf666a174fd66778d110d47ef3a0ca93 Mon Sep 17 00:00:00 2001 From: Christian Sutter Date: Thu, 14 Sep 2023 07:40:51 +0000 Subject: [PATCH] Remove dependency on deprecated RabbitMQ config The `govuk_message_queue_consumer` gem has deprecated the use of its "proprietary" `RABBITMQ_*` environment variables and `RabbitMQConfig.from_environment` setup process in favour of Bunny just being set up through the conventional `RABBITMQ_URL`. see also: https://github.com/alphagov/govuk-docker/pull/688 --- lib/tasks/message_queue.rake | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/tasks/message_queue.rake b/lib/tasks/message_queue.rake index 7f5660f23..9e24e9785 100644 --- a/lib/tasks/message_queue.rake +++ b/lib/tasks/message_queue.rake @@ -1,15 +1,9 @@ -# The following environment variables need to be set -# RABBITMQ_HOSTS -# RABBITMQ_VHOST -# RABBITMQ_USER -# RABBITMQ_PASSWORD require "rummager" namespace :message_queue do desc "Create the queues that Rummager uses with Rabbit MQ" task :create_queues do - config = GovukMessageQueueConsumer::RabbitMQConfig.from_environment(ENV) - bunny = Bunny.new(config) + bunny = Bunny.new channel = bunny.start.create_channel exch = Bunny::Exchange.new(channel, :topic, "published_documents")