From c32146b1955691bd0145eb605b8c5ec2e245667b Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 21 Jan 2015 16:50:10 +0000 Subject: Read the queue-type from the settings-object. This replaces redis as a hard-wired default. --- lib/custodian/worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1