Skip to content

Commit

Permalink
Remove uneeded code after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
salvacorts committed Jul 19, 2023
1 parent b410b86 commit 1e6f49b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/chunkenc/memchunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1e6f49b

Please sign in to comment.