Skip to content

Commit db2b81d

Browse files
committed
fix: ignore value of ctIndex
Previously ctIndex was always >= 0, and hence this always evaluated to true. Until we have a better solution, we should just ignore the value of ctIndex at all for the decision whether to continue downloading from a specific point.
1 parent b9a3af0 commit db2b81d

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
@@ -443,7 +443,7 @@ func (w *worker) runTiledWorker(ctx context.Context) error {
443443
hc := &http.Client{Timeout: 30 * time.Second}
444444

445445
// If recovery is enabled and the CT index is set, we start at the saved index. Otherwise, we start at the latest checkpoint.
446-
validSavedCTIndexExists := config.AppConfig.General.Recovery.Enabled && w.ctIndex >= 0
446+
validSavedCTIndexExists := config.AppConfig.General.Recovery.Enabled
447447
if !validSavedCTIndexExists {
448448
checkpoint, err := FetchCheckpoint(ctx, hc, w.ctURL)
449449
if err != nil {

0 commit comments

Comments
 (0)