Skip to content

Commit

Permalink
lru cache logql.ParseLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
liguozhong committed Jan 4, 2021
1 parent c128139 commit e6b71dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/distributor/distributor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
}

Expand Down

0 comments on commit e6b71dd

Please sign in to comment.