Skip to content

Commit

Permalink
add break
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Aug 22, 2024
1 parent 353172f commit 3b4c6ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rollup/internal/controller/watcher/chunk_proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func (p *ChunkProposer) updateDBChunkInfo(chunk *encoding.Chunk, codecVersion en
if len(chunk.Blocks) == 1 {
log.Warn("Disable compression: cannot truncate chunk with only 1 block for compatibility", "block number", chunk.Blocks[0].Header.Number)
codecConfig.EnableCompress = false
break
}

chunk.Blocks = chunk.Blocks[:len(chunk.Blocks)-1]
Expand Down

0 comments on commit 3b4c6ba

Please sign in to comment.