lib/penthouse/sidekiq/middleware/client.rb in penthouse-0.9.0 vs lib/penthouse/sidekiq/middleware/client.rb in penthouse-0.10.0

- old
+ new

@@ -1,8 +1,12 @@ -module Penthouse::Sidekiq::Middleware - class Client - def call(worker_class, item, queue, redis_pool=nil) - item['tenant'] ||= Penthouse.current_tenant - yield +module Penthouse + module Sidekiq + module Middleware + class Client + def call(worker_class, item, queue, redis_pool=nil) + item['tenant'] ||= Penthouse.current_tenant + yield + end + end end end end