Skip to content

Commit a2b4a9f

Browse files
committed
fix(static-ct): calculate correct starting tile index
Adjust the starting tile calculation to ensure processing begins at the correct offset. This prevents unnecessary reprocessing of already processed tiles when the current index is at a tile boundary.
1 parent b9369ff commit a2b4a9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/certificatetransparency/ct-watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ func (w *worker) processTiledLogUpdates(ctx context.Context, httpClient *http.Cl
533533
}
534534

535535
// Process entries from current index to new tree size
536-
startTile := w.ctIndex / TileSize
536+
startTile := (w.ctIndex + 1) / TileSize
537537
endTile := currentTreeSize / TileSize
538538

539539
// Process complete tiles

0 commit comments

Comments
 (0)