fixup lint
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
d4472e1ab2
commit
3c23fa1343
@ -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}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user