Loki: Fix scope of labels variable being wrong (#78417)

fix scope of labels var
This commit is contained in:
Sven Grossmann
2023-11-21 10:14:21 +01:00
committed by GitHub
parent 9200e17b18
commit 44586df7bf
5 changed files with 225 additions and 105 deletions
+1 -1
View File
@@ -981,7 +981,7 @@ func readCategorizedStream(iter *jsonitere.Iterator) backend.DataResponse {
case "stream":
// we need to clear `labels`, because `iter.ReadVal`
// only appends to it
labels := data.Labels{}
labels = data.Labels{}
if err = iter.ReadVal(&labels); err != nil {
return rspErr(err)
}