From 62455a3723766a299234d0acc4528c735b38918e Mon Sep 17 00:00:00 2001 From: Peter Olsar Date: Sat, 17 Aug 2024 16:27:22 -0700 Subject: [PATCH] fix: add a TODO --- internal/checks/latency.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/checks/latency.go b/internal/checks/latency.go index 62c2f339..d4567afa 100644 --- a/internal/checks/latency.go +++ b/internal/checks/latency.go @@ -133,7 +133,7 @@ func (c *LatencyCheck) runCheck() { val.timeoutOrError++ c.metricsContainer.LatencyCheckErrors.WithLabelValues(c.upstreamConfig.ID, c.upstreamConfig.HTTPURL, metrics.HTTPRequest).Inc() - } else if duration > defaultMaxLatency { + } else if duration > defaultMaxLatency { // TODO(polsar): Get the latency threshold from config. val.latencyTooHigh++ c.metricsContainer.LatencyCheckHighLatencies.WithLabelValues(c.upstreamConfig.ID, c.upstreamConfig.HTTPURL, metrics.HTTPRequest).Inc()