fixup lint
Some checks failed
codeql / analyze (go) (push) Failing after 5m32s
build / lint (push) Successful in 1m5s
build / test (push) Failing after 1m58s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-12-15 17:51:29 +03:00
parent d4472e1ab2
commit 3c23fa1343

View File

@ -65,7 +65,7 @@ func TestHistogram(t *testing.T) {
p.Observe(10) p.Observe(10)
p.Observe(30) p.Observe(30)
mdto := &dto.Metric{} mdto := &dto.Metric{}
p.Write(mdto) _ = p.Write(mdto)
pbuf := bytes.NewBuffer(nil) pbuf := bytes.NewBuffer(nil)
enc := expfmt.NewEncoder(pbuf, expfmt.NewFormat(expfmt.TypeTextPlain)) enc := expfmt.NewEncoder(pbuf, expfmt.NewFormat(expfmt.TypeTextPlain))
mf := &dto.MetricFamily{Name: &name, Type: dto.MetricType_HISTOGRAM.Enum(), Metric: []*dto.Metric{mdto}} mf := &dto.MetricFamily{Name: &name, Type: dto.MetricType_HISTOGRAM.Enum(), Metric: []*dto.Metric{mdto}}