Rename certspotter-specific loglist fields, again
This commit is contained in:
parent
56b190f7c0
commit
00fd77f6ed
|
@ -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"`
|
CertspotterDownloadSize int `json:"certspotter_download_size,omitempty"`
|
||||||
ParallelGetEntries int `json:"parallel_get_entries,omitempty"`
|
CertspotterDownloadJobs int `json:"certspotter_download_jobs,omitempty"`
|
||||||
|
|
||||||
// TODO: add previous_operators
|
// TODO: add previous_operators
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,16 +35,16 @@ const (
|
||||||
func downloadJobSize(ctlog *loglist.Log) uint64 {
|
func downloadJobSize(ctlog *loglist.Log) uint64 {
|
||||||
if ctlog.IsStaticCTAPI() {
|
if ctlog.IsStaticCTAPI() {
|
||||||
return ctclient.StaticTileWidth
|
return ctclient.StaticTileWidth
|
||||||
} else if ctlog.GetEntriesSize != 0 {
|
} else if ctlog.CertspotterDownloadSize != 0 {
|
||||||
return uint64(ctlog.GetEntriesSize)
|
return uint64(ctlog.CertspotterDownloadSize)
|
||||||
} else {
|
} else {
|
||||||
return 1000
|
return 1000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func downloadWorkers(ctlog *loglist.Log) int {
|
func downloadWorkers(ctlog *loglist.Log) int {
|
||||||
if ctlog.ParallelGetEntries != 0 {
|
if ctlog.CertspotterDownloadJobs != 0 {
|
||||||
return ctlog.ParallelGetEntries
|
return ctlog.CertspotterDownloadJobs
|
||||||
} else {
|
} else {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue