Make namespace symbol friendly

Currently limit_fetch fails to work with symbol namespaces with following
error: `Error fetching job: undefined method `+' for :sidekiq:Symbol`
This commit is contained in:
Tomas Varaneckas 2016-03-09 18:03:21 +02:00
parent cb1fabc8c4
commit 635206ac25
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ module Sidekiq::LimitFetch::Queues
def namespace
@namespace ||= Sidekiq.redis do |it|
if it.respond_to?(:namespace) and it.namespace
it.namespace + ':'
"#{it.namespace}:"
else
''
end