Rename DownloadJobSize to GetEntriesSize

This commit is contained in:
Andrew Ayer 2025-05-05 10:04:50 -04:00
parent c967253f80
commit bc199bca4b
2 changed files with 4 additions and 3 deletions

View File

@ -44,8 +44,9 @@ type Log struct {
EndExclusive time.Time `json:"end_exclusive"`
} `json:"temporal_interval"`
// certspotter-specific extensions
GetEntriesSize int `json:"get_entries_size,omitempty"`
DownloadWorkers int `json:"certspotter_download_workers,omitempty"`
DownloadJobSize int `json:"certspotter_download_job_size,omitempty"`
// TODO: add previous_operators
}

View File

@ -35,8 +35,8 @@ const (
func downloadJobSize(ctlog *loglist.Log) uint64 {
if ctlog.IsStaticCTAPI() {
return ctclient.StaticTileWidth
} else if ctlog.DownloadJobSize != 0 {
return uint64(ctlog.DownloadJobSize)
} else if ctlog.GetEntriesSize != 0 {
return uint64(ctlog.GetEntriesSize)
} else {
return 256
}