From ddc51cc02835a49a9219b20924956c6bc51aea96 Mon Sep 17 00:00:00 2001 From: corneredrat Date: Thu, 20 Oct 2022 13:21:31 +0530 Subject: [PATCH] remove unused code --- metrics/metrics.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/metrics/metrics.go b/metrics/metrics.go index b09e0e99e..560e799f4 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -57,11 +57,6 @@ const ( SLAVE_IS_READY = "CHECK_IF_SLAVE_IS_READY" ) -var ( // Used for GCing stale metrics - trackedIPs map[string]bool // IPs of either redis or sentinels that are being labelled every check and heal loop - trackedResources map[string]map[string]map[string]bool // namespace -> kind -> object -) - // Instrumenter is the interface that will collect the metrics and has ability to send/expose those metrics. type Recorder interface { koopercontroller.MetricsRecorder