From e6b71dd302fd2dc8ebe1a6d2261b9110eafab99e Mon Sep 17 00:00:00 2001 From: fuling Date: Mon, 4 Jan 2021 18:26:10 +0800 Subject: [PATCH] lru cache logql.ParseLabels --- pkg/distributor/distributor_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/distributor/distributor_test.go b/pkg/distributor/distributor_test.go index f0273071da79..7d5fcf4ce11b 100644 --- a/pkg/distributor/distributor_test.go +++ b/pkg/distributor/distributor_test.go @@ -123,7 +123,10 @@ func Benchmark_SortLabelsOnPush(b *testing.B) { request := makeWriteRequest(10, 10) stream := request.Streams[0] stream.Labels = `{buzz="f", a="b"}` - d.parseStreamLabels("123", stream.Labels, &stream) + _, err := d.parseStreamLabels("123", stream.Labels, &stream) + if err != nil { + panic("parseStreamLabels fail,err:" + err.Error()) + } } }