mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
remove unneeded namespace setter
This commit is contained in:
parent
e1ce920b15
commit
7813cc1cb6
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue