Welcome to mirror list, hosted at ThFree Co, Russian Federation.

query_analyzer.rb « middleware « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d63c644a6985c5a675e995ac86f5c2605c0ef67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Gitlab
  module Middleware
    class QueryAnalyzer
      def initialize(app)
        @app = app
      end

      def call(env)
        ::Gitlab::Database::QueryAnalyzer.instance.within { @app.call(env) }
      end
    end
  end
end