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:
parent
cb1fabc8c4
commit
635206ac25
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue