diff options
author | Byron Jones <bjones@mozilla.com> | 2012-11-14 16:16:36 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-11-14 16:16:36 +0100 |
commit | 5ee5f5e6a9a2274776f81d2afc13205cbd3448ef (patch) | |
tree | d33e0125677d32273fe62fd166cb209055a84280 /extensions | |
parent | 99ec314f1888f326b2305be67da991c5316ce20f (diff) | |
download | bugzilla-5ee5f5e6a9a2274776f81d2afc13205cbd3448ef.tar.gz bugzilla-5ee5f5e6a9a2274776f81d2afc13205cbd3448ef.tar.xz |
Bug 589322: fix push breakage (Net::RabbitMQ should be optional)
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/Push/lib/Connector/AMQP.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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}, |