mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
metrics: rephrase comment
This commit is contained in:
parent
ada0f55f0a
commit
928c8a242a
1 changed files with 4 additions and 2 deletions
|
|
@ -23,8 +23,10 @@ func Enabled() bool {
|
||||||
|
|
||||||
// Enable enables the metrics system.
|
// Enable enables the metrics system.
|
||||||
// The Enabled-flag is expected to be set, once, during startup, but toggling off and on
|
// The Enabled-flag is expected to be set, once, during startup, but toggling off and on
|
||||||
// is not supported,
|
// is not supported.
|
||||||
// Enable is not safe to call concurrently. It has no effect if it was already called.
|
//
|
||||||
|
// Enable is not safe to call concurrently. You need to call this as early as possible in
|
||||||
|
// the program, before any metrics collection will happen.
|
||||||
func Enable() {
|
func Enable() {
|
||||||
metricsEnabled = true
|
metricsEnabled = true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue