mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-01 16:04:19 +00:00
18 lines
308 B
Ruby
18 lines
308 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module SidekiqMiddleware
|
|
module Identity
|
|
class Restore
|
|
include Sidekiq::ServerMiddleware
|
|
|
|
def call(_worker, job, _queue)
|
|
::Gitlab::Auth::Identity.sidekiq_restore!(job)
|
|
|
|
yield
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|