From 7813cc1cb60dcdb3c9c94f26a8c489f0ffc1a586 Mon Sep 17 00:00:00 2001 From: Max Spransy Date: Thu, 9 Feb 2012 09:39:27 -0600 Subject: [PATCH] remove unneeded namespace setter --- lib/sidekiq/redis_connection.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/sidekiq/redis_connection.rb b/lib/sidekiq/redis_connection.rb index 4974eadb..7517f374 100644 --- a/lib/sidekiq/redis_connection.rb +++ b/lib/sidekiq/redis_connection.rb @@ -16,6 +16,7 @@ module Sidekiq def self.connect r = Redis.connect(:url => url) + if namespace Redis::Namespace.new(namespace, :redis => r) else @@ -30,9 +31,5 @@ module Sidekiq def self.url @url || ENV['REDISTOGO_URL'] || 'redis://localhost:6379/0' end - - def self.namespace=(namespace) - @namespace = namespace - end end end