diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-01-21 16:50:10 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-01-21 16:50:10 +0000 |
commit | eb4affc278f690c1b2befbb6faab917dea6bde94 (patch) | |
tree | 734d3055d775feece9ba21ddb23345793202b5c5 | |
parent | f1a6eb09eba8e946e530745cbd19f5f754f505ff (diff) |
Read the queue-type from the settings-object.
This replaces redis as a hard-wired default.
-rw-r--r-- | lib/custodian/worker.rb | 2 |
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 |