From 7608787b3c1c40ae6570cb7ae9ce4e83bc826ce9 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Fri, 13 Dec 2024 14:00:11 +0800 Subject: [PATCH] metrics: remove redundant type specifiers (#19090) --- metrics/metrics.go | 2 +- metrics/opentsdb.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/metrics.go b/metrics/metrics.go index 2d9d652a02..ebfa602d18 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -19,7 +19,7 @@ import ( // // This global kill-switch helps quantify the observer effect and makes // for less cluttered pprof profiles. -var Enabled bool = false +var Enabled = false // MetricsEnabledFlag is the CLI flag name to use to enable metrics collections. const MetricsEnabledFlag = "metrics" diff --git a/metrics/opentsdb.go b/metrics/opentsdb.go index df7f152ed2..3fde55454b 100644 --- a/metrics/opentsdb.go +++ b/metrics/opentsdb.go @@ -10,7 +10,7 @@ import ( "time" ) -var shortHostName string = "" +var shortHostName = "" // OpenTSDBConfig provides a container with configuration parameters for // the OpenTSDB exporter