debian-mirror-gitlab/lib/gitlab/sidekiq_middleware/request_store_middleware.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
266 B
Ruby
Raw Normal View History

2018-12-23 12:14:25 +05:30
# frozen_string_literal: true
2016-09-13 17:45:13 +05:30
module Gitlab
module SidekiqMiddleware
class RequestStoreMiddleware
2020-04-08 14:13:33 +05:30
include Gitlab::WithRequestStore
2016-09-13 17:45:13 +05:30
def call(worker, job, queue)
2020-04-08 14:13:33 +05:30
with_request_store do
yield
end
2016-09-13 17:45:13 +05:30
end
end
end
end