We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5250a0 commit 7352a2eCopy full SHA for 7352a2e
1 file changed
internal/certificatetransparency/ct-watcher.go
@@ -396,9 +396,9 @@ func (w *worker) runWorker(ctx context.Context) error {
396
return errCreatingClient
397
}
398
399
- // If recovery is enabled and the CT index is set, we start at the saved index. Otherwise we start at the latest STH.
400
- validSavedCTIndexExists := config.AppConfig.General.Recovery.Enabled
401
- if !validSavedCTIndexExists {
+ // If recovery is enabled, we start at the saved index. Otherwise, we start at the latest STH.
+ recoveryEnabled := config.AppConfig.General.Recovery.Enabled
+ if !recoveryEnabled {
402
sth, getSTHerr := jsonClient.GetSTH(ctx)
403
if getSTHerr != nil {
404
// TODO this can happen due to a 429 error. We should retry the request
0 commit comments