Skip to content

Commit 79cdbcf

Browse files
authored
Merge pull request #15018 from Bo-Ye/master
metrics: change MetricsEnabledFlag to be const
2 parents fc5f8a3 + b4b27eb commit 79cdbcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎metrics/metrics.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
)
3030

3131
// MetricsEnabledFlag is the CLI flag name to use to enable metrics collections.
32-
var MetricsEnabledFlag = "metrics"
32+
const MetricsEnabledFlag = "metrics"
3333

3434
// Enabled is the flag specifying if metrics are enable or not.
3535
var Enabled = false

0 commit comments

Comments
 (0)