gitlab-org--gitlab-foss/lib/gitlab/sidekiq_middleware/request_store_middleware.rb

16 lines
266 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Gitlab
module SidekiqMiddleware
class RequestStoreMiddleware
include Gitlab::WithRequestStore
def call(worker, job, queue)
with_request_store do
yield
end
end
end
end
end