Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Update restore.go
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer authored and ti-chi-bot committed May 20, 2021
1 parent 66ba74e commit 00be7d0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/lightning/restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -2566,10 +2566,6 @@ func (cr *chunkRestore) encodeLoop(
canDeliver = true
kvSize = 0
}

if len(kvPacket) >= maxKvPairsCnt || newOffset == cr.chunk.Chunk.EndOffset {
canDeliver = true
}
}
encodeTotalDur += encodeDur
metric.RowEncodeSecondsHistogram.Observe(encodeDur.Seconds())
Expand Down

0 comments on commit 00be7d0

Please sign in to comment.