From 2ee023e6a37631ca4bedf6b6a4341b75e7bd907c Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 23 Apr 2013 10:11:35 +0100 Subject: The name of the beanstalkd tube is passed into the constructor now. --- lib/custodian/worker.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb index 5219a5b..cea07d8 100644 --- a/lib/custodian/worker.rb +++ b/lib/custodian/worker.rb @@ -72,10 +72,10 @@ module Custodian # # Constructor: Connect to the queue # - def initialize( server, alerter, logfile, settings ) + def initialize( server, queue, alerter, logfile, settings ) # Connect to the queue - @queue = Beanstalk::Pool.new([server], "Custodian" ) + @queue = Beanstalk::Pool.new([server], queue ) # Get the alerter-type to instantiate @alerter = alerter -- cgit v1.2.1