debian-mirror-gitlab/lib/gitlab/sidekiq_middleware/request_store_middleware.rb
2019-01-03 12:48:30 +05:30

13 lines
246 B
Ruby

module Gitlab
module SidekiqMiddleware
class RequestStoreMiddleware
def call(worker, job, queue)
RequestStore.begin!
yield
ensure
RequestStore.end!
RequestStore.clear!
end
end
end
end