From 1e6f49b7cae8ab0b74b9e090846574adb7d53651 Mon Sep 17 00:00:00 2001 From: Salva Corts Date: Wed, 19 Jul 2023 15:18:04 +0200 Subject: [PATCH] Remove uneeded code after rebase --- pkg/chunkenc/memchunk.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/chunkenc/memchunk.go b/pkg/chunkenc/memchunk.go index 2e323d4e753f2..0ab86a6613858 100644 --- a/pkg/chunkenc/memchunk.go +++ b/pkg/chunkenc/memchunk.go @@ -1276,7 +1276,6 @@ func (si *bufferedIterator) moveNext() (int64, []byte, [][]byte, bool) { // Maybe we can extract it to a separate function and reuse it? lastAttempt = 0 var labelsWidth, nLabels int - lastAttempt = 0 for labelsWidth == 0 { // Read until we have enough bytes for the labels. n, err := si.reader.Read(si.readBuf[si.readBufValid:]) si.readBufValid += n @@ -1323,7 +1322,6 @@ func (si *bufferedIterator) moveNext() (int64, []byte, [][]byte, bool) { si.metaLabelsBuf = si.metaLabelsBuf[:nLabels*2] // Read all the label-value pairs, into the buffer slice. - lastAttempt = 0 for i := 0; i < metaLabelsBufLen; i++ { // Read the length of the label. lastAttempt = 0