From 5ee5f5e6a9a2274776f81d2afc13205cbd3448ef Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 14 Nov 2012 23:16:36 +0800 Subject: Bug 589322: fix push breakage (Net::RabbitMQ should be optional) --- extensions/Push/lib/Connector/AMQP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/Push/lib/Connector/AMQP.pm b/extensions/Push/lib/Connector/AMQP.pm index 851d4febf..7b7d4aa72 100644 --- a/extensions/Push/lib/Connector/AMQP.pm +++ b/extensions/Push/lib/Connector/AMQP.pm @@ -17,7 +17,6 @@ use Bugzilla::Extension::Push::Constants; use Bugzilla::Extension::Push::Util; use Bugzilla::Util qw(generate_random_password); use DateTime; -use Net::RabbitMQ; sub init { my ($self) = @_; @@ -107,6 +106,7 @@ sub _connect { $self->stop(); $logger->debug('AMQP: Connecting to RabbitMQ ' . $config->{host} . ':' . $config->{port}); + require Net::RabbitMQ; my $mq = Net::RabbitMQ->new(); $mq->connect( $config->{host}, -- cgit v1.2.3-24-g4f1b