metrics: remove redundant type specifiers (#19090)

This commit is contained in:
Daniel Liu 2024-12-13 14:00:11 +08:00
parent 3e4583e7c4
commit 7608787b3c
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ import (
// //
// This global kill-switch helps quantify the observer effect and makes // This global kill-switch helps quantify the observer effect and makes
// for less cluttered pprof profiles. // for less cluttered pprof profiles.
var Enabled bool = false var Enabled = false
// MetricsEnabledFlag is the CLI flag name to use to enable metrics collections. // MetricsEnabledFlag is the CLI flag name to use to enable metrics collections.
const MetricsEnabledFlag = "metrics" const MetricsEnabledFlag = "metrics"

View file

@ -10,7 +10,7 @@ import (
"time" "time"
) )
var shortHostName string = "" var shortHostName = ""
// OpenTSDBConfig provides a container with configuration parameters for // OpenTSDBConfig provides a container with configuration parameters for
// the OpenTSDB exporter // the OpenTSDB exporter