Fix syntax tree errors on main branch (#342)

This commit is contained in:
Benoit Tigeot 2025-08-06 02:21:41 +02:00 committed by GitHub
parent 8e3c307fb6
commit d6084535f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -13,8 +13,11 @@ module PrometheusExporter::Server
max_threads: "Number of puma threads at available at max scale.",
}
if defined?(::Puma::Const) && Gem::Version.new(::Puma::Const::VERSION) >= Gem::Version.new('6.6.0')
PUMA_GAUGES[:busy_threads] = "Wholistic stat reflecting the overall current state of work to be done and the capacity to do it"
if defined?(::Puma::Const) &&
Gem::Version.new(::Puma::Const::VERSION) >= Gem::Version.new("6.6.0")
PUMA_GAUGES[
:busy_threads
] = "Wholistic stat reflecting the overall current state of work to be done and the capacity to do it"
end
def initialize

View File

@ -71,7 +71,7 @@ unless defined?(::Puma)
end
def self.stats
'{}'
"{}"
end
end
end