aboutsummaryrefslogtreecommitdiffstats
path: root/metrics
diff options
context:
space:
mode:
authorMatthew Halpern <matthalp@google.com>2019-02-18 19:37:31 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-02-18 19:37:31 +0800
commitf57c80d22e3bf61deb3ad7abaa68d6ec1485bec7 (patch)
tree04cb1062ef99848997c1864e653bd3ed0006260d /metrics
parent7b3e3d549ed3af9abad6251b9bf17c526ee444ba (diff)
downloadgo-tangerine-f57c80d22e3bf61deb3ad7abaa68d6ec1485bec7.tar
go-tangerine-f57c80d22e3bf61deb3ad7abaa68d6ec1485bec7.tar.gz
go-tangerine-f57c80d22e3bf61deb3ad7abaa68d6ec1485bec7.tar.bz2
go-tangerine-f57c80d22e3bf61deb3ad7abaa68d6ec1485bec7.tar.lz
go-tangerine-f57c80d22e3bf61deb3ad7abaa68d6ec1485bec7.tar.xz
go-tangerine-f57c80d22e3bf61deb3ad7abaa68d6ec1485bec7.tar.zst
go-tangerine-f57c80d22e3bf61deb3ad7abaa68d6ec1485bec7.zip
metrics: remove redundant type specifiers (#19090)
Diffstat (limited to 'metrics')
-rw-r--r--metrics/metrics.go2
-rw-r--r--metrics/opentsdb.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go
index 2a2b804e7..5910fb073 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 df7f152ed..3fde55454 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