Skip to content

Commit 1726e46

Browse files
authored
Merge pull request #224 from jianghuyiyuan/main
chore: make function comment match function name
2 parents ce5ec75 + 07db472 commit 1726e46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/metrics/metrics.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func (m *Metrics) newGauge(service chiaService, name string, help string) *wrapp
251251
return lg
252252
}
253253

254-
// newGauge returns a gaugeVec that follows naming conventions and registers it with the prometheus collector
254+
// newGaugeVec returns a gaugeVec that follows naming conventions and registers it with the prometheus collector
255255
// This doesn't need a lazy wrapper, as they're inherently lazy registered for each label value provided
256256
func (m *Metrics) newGaugeVec(service chiaService, name string, help string, labels []string) *prometheus.GaugeVec {
257257
opts := prometheus.GaugeOpts{
@@ -274,7 +274,7 @@ func (m *Metrics) newGaugeVec(service chiaService, name string, help string, lab
274274
return gm
275275
}
276276

277-
// newGauge returns a counter that follows naming conventions and registers it with the prometheus collector
277+
// newCounter returns a counter that follows naming conventions and registers it with the prometheus collector
278278
func (m *Metrics) newCounter(service chiaService, name string, help string) *wrappedPrometheus.LazyCounter {
279279
opts := prometheus.CounterOpts{
280280
Namespace: "chia",

0 commit comments

Comments
 (0)