aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-08-23 18:22:46 +0800
committerGitHub <noreply@github.com>2017-08-23 18:22:46 +0800
commit79cdbcfe646be0d8f41111f80fdea41cda0f0104 (patch)
treeeb54a309e6f69ae39a754911c41ab5a4508f0d31
parentfc5f8a3dda29712c619e9df99e7f8b1ebc2c8ea7 (diff)
parentb4b27ebaea3e1145926555b139a2910af855215e (diff)
downloaddexon-79cdbcfe646be0d8f41111f80fdea41cda0f0104.tar
dexon-79cdbcfe646be0d8f41111f80fdea41cda0f0104.tar.gz
dexon-79cdbcfe646be0d8f41111f80fdea41cda0f0104.tar.bz2
dexon-79cdbcfe646be0d8f41111f80fdea41cda0f0104.tar.lz
dexon-79cdbcfe646be0d8f41111f80fdea41cda0f0104.tar.xz
dexon-79cdbcfe646be0d8f41111f80fdea41cda0f0104.tar.zst
dexon-79cdbcfe646be0d8f41111f80fdea41cda0f0104.zip
Merge pull request #15018 from Bo-Ye/master
metrics: change MetricsEnabledFlag to be const
-rw-r--r--metrics/metrics.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go
index 9906bb8ad..da2cdbc53 100644
--- a/metrics/metrics.go
+++ b/metrics/metrics.go
@@ -29,7 +29,7 @@ import (
)
// MetricsEnabledFlag is the CLI flag name to use to enable metrics collections.
-var MetricsEnabledFlag = "metrics"
+const MetricsEnabledFlag = "metrics"
// Enabled is the flag specifying if metrics are enable or not.
var Enabled = false