Rename DownloadWorkers, revert to old defaults

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

View File

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

View File

@ -38,15 +38,15 @@ func downloadJobSize(ctlog *loglist.Log) uint64 {
} else if ctlog.GetEntriesSize != 0 { } else if ctlog.GetEntriesSize != 0 {
return uint64(ctlog.GetEntriesSize) return uint64(ctlog.GetEntriesSize)
} else { } else {
return 256 return 1000
} }
} }
func downloadWorkers(ctlog *loglist.Log) int { func downloadWorkers(ctlog *loglist.Log) int {
if ctlog.DownloadWorkers != 0 { if ctlog.ParallelGetEntries != 0 {
return ctlog.DownloadWorkers return ctlog.ParallelGetEntries
} else { } else {
return 4 return 1
} }
} }