mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
chore: improve comments
This commit is contained in:
parent
7afea05a0d
commit
192f6d2704
1 changed files with 5 additions and 3 deletions
|
|
@ -30,13 +30,15 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
borInfo = metrics.NewRegisteredGaugeInfo("bor/info", nil)
|
// borInfoGauge stores Bor git commit and version details.
|
||||||
|
borInfoGauge = metrics.NewRegisteredGaugeInfo("bor/info", nil)
|
||||||
|
|
||||||
GitCommit string
|
GitCommit string
|
||||||
)
|
)
|
||||||
|
|
||||||
// UpdateBorInfo updates the bor_info with the current git commit and version details.
|
// UpdateBorInfo updates the bor_info metric with the current git commit and version details.
|
||||||
func UpdateBorInfo() {
|
func UpdateBorInfo() {
|
||||||
borInfo.Update(metrics.GaugeInfoValue{
|
borInfoGauge.Update(metrics.GaugeInfoValue{
|
||||||
"commit": GitCommit,
|
"commit": GitCommit,
|
||||||
"version": VersionWithMeta,
|
"version": VersionWithMeta,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue