From 4ed2e5510c188d92007bc78d2141f59cff07ba0b Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Sat, 28 Apr 2012 13:14:40 +0100 Subject: Updated transmission cache expiry to work properly. --- lib/mauve/processor.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mauve/processor.rb b/lib/mauve/processor.rb index acf72b3..48a4ee2 100644 --- a/lib/mauve/processor.rb +++ b/lib/mauve/processor.rb @@ -57,8 +57,7 @@ module Mauve to_delete = [] - @transmission_id_cache = @transmission_id_cache.delete_if do |cache_data| - tid, received_at = cache_data + @transmission_id_cache.delete_if do |tid, received_at| (now - received_at) > @transmission_cache_expire_time end -- cgit v1.2.1