2021-02-03 16:09:17 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-03-16 14:11:53 -04:00
|
|
|
if Gitlab::QueryLimiting.enabled_for_env?
|
2018-01-15 10:21:04 -05:00
|
|
|
require_dependency 'gitlab/query_limiting/active_support_subscriber'
|
|
|
|
require_dependency 'gitlab/query_limiting/transaction'
|
|
|
|
require_dependency 'gitlab/query_limiting/middleware'
|
|
|
|
|
|
|
|
Gitlab::Application.configure do |config|
|
|
|
|
config.middleware.use(Gitlab::QueryLimiting::Middleware)
|
|
|
|
end
|
|
|
|
end
|