Sha256: f01c70ad9677c7c90acbf68db84ba045f534b75738ce01572e9dd94a7d40de3a
Contents?: true
Size: 451 Bytes
Versions: 3
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true module Quilt class PerformanceReportController < ActionController::Base include Quilt::Performance::Reportable protect_from_forgery with: :null_session MAX_THREADS = 25 def create Thread.new do process_report rescue # rubocop:disable Lint/SuppressedException end if Thread.list.count < MAX_THREADS render(plain: '{"result":"success"}', status: 200) end end end
Version data entries
3 entries across 3 versions & 1 rubygems