Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d3bbe9b

Browse files
committed
spelling errors
1 parent e3f7006 commit d3bbe9b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

coderd/coderdtest/promhelp/metrics.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ func MetricValue(t testing.TB, reg prometheus.Gatherer, metricName string, label
7373
for _, m := range metrics {
7474
if m.GetName() == metricName {
7575
for _, labeled := range m.GetMetric() {
76-
mLables := make(prometheus.Labels)
76+
mLabels := make(prometheus.Labels)
7777
for _, v := range labeled.GetLabel() {
78-
mLables[v.GetName()] = v.GetValue()
78+
mLabels[v.GetName()] = v.GetValue()
7979
}
80-
if maps.Equal(mLables, labels) {
80+
if maps.Equal(mLabels, labels) {
8181
return labeled
8282
}
8383
}

coderd/database/dbmetrics/dbmetrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (m metricsStore) InTx(f func(database.Store) error, options *database.TxOpt
9797
if options.ExecutionCount() > 1 {
9898
l := m.logger.Warn
9999
if err != nil {
100-
// Error leve if retries were not enough
100+
// Error level if retries were not enough
101101
l = m.logger.Error
102102
}
103103
// No context is present in this function :(

0 commit comments

Comments
 (0)