From 97f6b74a74c02e8aae6ae06894445d2a8f59a545 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(-) (limited to 'lib') 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