aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/processor.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-07-22 16:55:01 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-07-22 16:55:01 +0100
commitfd23821950f0562a8995735105cd31fdc6d55933 (patch)
tree967df2f5647803a6c46f4d52003b2231c1de72cb /lib/mauve/processor.rb
parentd3a3cfef9650b08f62db62bd7e86b673f9d77d0b (diff)
* 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
Diffstat (limited to 'lib/mauve/processor.rb')
-rw-r--r--lib/mauve/processor.rb7
1 files changed, 6 insertions, 1 deletions
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