We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0ccdd7 commit b3626d8Copy full SHA for b3626d8
1 file changed
internal/certificatetransparency/ct-watcher.go
@@ -258,10 +258,11 @@ func (w *Watcher) dropRemovedLogs(logList loglist3.LogList) {
258
func (w *Watcher) Stop() {
259
log.Printf("Stopping watcher\n")
260
261
- // Store current CT Indexes before shutting down
262
- filePath := config.AppConfig.General.Recovery.CTIndexFile
263
- tempFilePath := fmt.Sprintf("%s.tmp", filePath)
264
- metrics.SaveCertIndexes(tempFilePath, filePath)
+ if config.AppConfig.General.Recovery.Enabled {
+ // Store current CT Indexes before shutting down
+ filePath := config.AppConfig.General.Recovery.CTIndexFile
+ metrics.SaveCertIndexes(filePath)
265
+ }
266
267
w.cancelFunc()
268
}
0 commit comments