aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-04-28 13:14:40 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-04-28 13:14:40 +0100
commit4ed2e5510c188d92007bc78d2141f59cff07ba0b (patch)
treef8f98a2d8ecaef9fbdd3e5c28b8c71c3256ca37a
parent44800cd4ec33b4bfcf20ec2f0a297ae6b63b7824 (diff)
Updated transmission cache expiry to work properly.
-rw-r--r--lib/mauve/processor.rb3
1 files changed, 1 insertions, 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