Rename certspotter-specific loglist fields, again

This commit is contained in:
Andrew Ayer 2025-05-05 10:29:06 -04:00
parent 56b190f7c0
commit 00fd77f6ed
2 changed files with 6 additions and 6 deletions

View File

@ -45,8 +45,8 @@ type Log struct {
} `json:"temporal_interval"`
// certspotter-specific extensions
GetEntriesSize int `json:"get_entries_size,omitempty"`
ParallelGetEntries int `json:"parallel_get_entries,omitempty"`
CertspotterDownloadSize int `json:"certspotter_download_size,omitempty"`
CertspotterDownloadJobs int `json:"certspotter_download_jobs,omitempty"`
// TODO: add previous_operators
}

View File

@ -35,16 +35,16 @@ const (
func downloadJobSize(ctlog *loglist.Log) uint64 {
if ctlog.IsStaticCTAPI() {
return ctclient.StaticTileWidth
} else if ctlog.GetEntriesSize != 0 {
return uint64(ctlog.GetEntriesSize)
} else if ctlog.CertspotterDownloadSize != 0 {
return uint64(ctlog.CertspotterDownloadSize)
} else {
return 1000
}
}
func downloadWorkers(ctlog *loglist.Log) int {
if ctlog.ParallelGetEntries != 0 {
return ctlog.ParallelGetEntries
if ctlog.CertspotterDownloadJobs != 0 {
return ctlog.CertspotterDownloadJobs
} else {
return 1
}