summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-01-21 16:50:10 +0000
committerSteve Kemp <steve@steve.org.uk>2015-01-21 16:50:10 +0000
commitc32146b1955691bd0145eb605b8c5ec2e245667b (patch)
tree6d90dc6035c01fdbacfc52e03279556aa1e4327b /lib
parent27d73e3f891e4ccfde3a50f341ded666823b1cdc (diff)
Read the queue-type from the settings-object.
This replaces redis as a hard-wired default.
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb
index 964d345..adb3a65 100644
--- a/lib/custodian/worker.rb
+++ b/lib/custodian/worker.rb
@@ -79,7 +79,7 @@ module Custodian
def initialize( server, alerter, logfile, settings )
# Connect to the queue
- @queue = QueueType.create( "redis" )
+ @queue = QueueType.create( settings.queue_type )
# Get the alerter-type to instantiate
@alerter = alerter