MINOR: Replace string literal with constant in RequestChannel
Replace the "RequestsPerSec" literal value with the pre-existing constant `RequestsPerSec`.
Reviewers: Divij Vaidya Jason Gustafson
@@ -530,7 +530,7 @@ class RequestMetrics(name: String) extends KafkaMetricsGroup {
Errors.values.foreach(error => errorMeters.put(error, new ErrorMeter(name, error)))
def requestRate(version: Short): Meter = {
- requestRateInternal.getAndMaybePut(version, newMeter("RequestsPerSec", "requests", TimeUnit.SECONDS, tags + ("version" -> version.toString)))
+ requestRateInternal.getAndMaybePut(version, newMeter(RequestsPerSec, "requests", TimeUnit.SECONDS, tags + ("version" -> version.toString)))
}
class ErrorMeter(name: String, error: Errors) {
