diff options
author | Bo Ye <boy.e.computer.1982@outlook.com> | 2017-08-22 14:35:09 +0800 |
---|---|---|
committer | Bo Ye <boy.e.computer.1982@outlook.com> | 2017-08-22 14:35:09 +0800 |
commit | b4b27ebaea3e1145926555b139a2910af855215e (patch) | |
tree | 6256173ad42966e3679438e6d421faedc51c0c45 /metrics | |
parent | 8c037dc4875499718cc7a588b8d5e65b7d73d952 (diff) | |
download | dexon-b4b27ebaea3e1145926555b139a2910af855215e.tar.gz dexon-b4b27ebaea3e1145926555b139a2910af855215e.tar.zst dexon-b4b27ebaea3e1145926555b139a2910af855215e.zip |
metrics: change MetricsEnabledFlag to be const
Diffstat (limited to 'metrics')
-rw-r--r-- | metrics/metrics.go | 2 |
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 |