debian-mirror-gitlab/lib/gitlab/metrics/exporter/gc_request_middleware.rb
2022-03-02 08:16:31 +05:30

19 lines
305 B
Ruby

# frozen_string_literal: true
module Gitlab
module Metrics
module Exporter
class GcRequestMiddleware
def initialize(app)
@app = app
end
def call(env)
@app.call(env).tap do
GC.start
end
end
end
end
end
end