From b4b27ebaea3e1145926555b139a2910af855215e Mon Sep 17 00:00:00 2001 From: Bo Ye Date: Tue, 22 Aug 2017 18:35:09 +1200 Subject: [PATCH] metrics: change MetricsEnabledFlag to be const --- metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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