Subject: | Tests fail with AnyEvent >= 7.0 |
AnyMQ tests are failing with AnyEvent >= 7.0 - looks like 'after' has
become a required parameter to AnyEvent->timer where it wasn't before?
Only seems to affect the timer call in AnyMQ::Topic.
Trivial patch attached that fixes it here.
Cheers,
Gavin
Subject: | perl-AnyMQ-0.34-topic_timer_after.patch |
From e24ce218f62b255f25c7db1d197ad1a5496300e0 Mon Sep 17 00:00:00 2001
From: Gavin Carr <gavin@openfusion.com.au>
Date: Wed, 22 Aug 2012 11:36:08 +1000
Subject: [PATCH] Update AnyMQ::Topic::install_reaper timer call to include after param.
---
lib/AnyMQ/Topic.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/AnyMQ/Topic.pm b/lib/AnyMQ/Topic.pm
index 3dd8ab2..c931e11 100644
--- a/lib/AnyMQ/Topic.pm
+++ b/lib/AnyMQ/Topic.pm
@@ -38,7 +38,8 @@ sub install_reaper {
my $self = shift;
$self->_listener_reaper(
- AnyEvent->timer(interval => $self->reaper_interval,
+ AnyEvent->timer(after => $self->reaper_interval,
+ interval => $self->reaper_interval,
cb => sub { $self->reap_destroyed_listeners })
);
}
--
1.7.1