From fd23821950f0562a8995735105cd31fdc6d55933 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 22 Jul 2011 16:55:01 +0100 Subject: * Rejigged configuration * Added --test and --verbose flags for the server config * Started proper test suite * Config parsing now gives more sensible errors + backtrace * Rejigged people and source lists --- lib/mauve/processor.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/mauve/processor.rb') diff --git a/lib/mauve/processor.rb b/lib/mauve/processor.rb index e3aac54..f5e8fac 100644 --- a/lib/mauve/processor.rb +++ b/lib/mauve/processor.rb @@ -8,7 +8,7 @@ module Mauve include Singleton - attr_accessor :transmission_cache_expire_time, :sleep_interval + attr_reader :transmission_cache_expire_time def initialize super @@ -24,6 +24,11 @@ module Mauve @logger ||= Log4r::Logger.new(self.class.to_s) end + def transmission_cache_expire_time=(i) + raise ArgumentError, "transmission_cache_expire_time must be an integer" unless i.is_a?(Integer) + @transmission_cache_expire_time = i + end + def main_loop sz = Server.packet_buffer_size -- cgit v1.2.1