summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-04-23 10:11:35 +0100
committerSteve Kemp <steve@steve.org.uk>2013-04-23 10:11:35 +0100
commit97f6b74a74c02e8aae6ae06894445d2a8f59a545 (patch)
tree058885f8a56917aa984dae5baa13c0b5fc74c4af /lib
parent5a47cb23e6b6f7b778eab1b6350e6f34d5105455 (diff)
The name of the beanstalkd tube is passed into the constructor now.
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/worker.rb4
1 files 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