Skip to content

Commit 95da843

Browse files
committed
feat: remove retired logs from current ct logs
Relates to #77
1 parent 735f6e6 commit 95da843

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

internal/certificatetransparency/ct-watcher.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,13 @@ func (w *Watcher) dropRemovedLogs(logList loglist3.LogList) {
183183
for _, operator := range logList.Operators {
184184
// Iterate over each log of the operator
185185
for _, transparencyLog := range operator.Logs {
186-
// Check if the log is already being watched
186+
// Remove retired logs from the list
187+
if transparencyLog.State.LogStatus() == loglist3.RetiredLogStatus {
188+
// Skip retired logs
189+
continue
190+
}
187191

192+
// Check if the log is already being watched
188193
logListURL := normalizeCtlogURL(transparencyLog.URL)
189194
if workerURL == logListURL {
190195
onLogList = true

0 commit comments

Comments
 (0)