From 192f6d27043557952ab498a0b3a52789139dbaed Mon Sep 17 00:00:00 2001 From: kamuikatsurgi Date: Mon, 3 Mar 2025 17:08:58 +0530 Subject: [PATCH] chore: improve comments --- params/version.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/params/version.go b/params/version.go index 0fa58e33fd..cc4add1c6f 100644 --- a/params/version.go +++ b/params/version.go @@ -30,13 +30,15 @@ const ( ) var ( - borInfo = metrics.NewRegisteredGaugeInfo("bor/info", nil) + // borInfoGauge stores Bor git commit and version details. + borInfoGauge = metrics.NewRegisteredGaugeInfo("bor/info", nil) + 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() { - borInfo.Update(metrics.GaugeInfoValue{ + borInfoGauge.Update(metrics.GaugeInfoValue{ "commit": GitCommit, "version": VersionWithMeta, })