Rename DownloadWorkers, revert to old defaults
This commit is contained in:
parent
bc199bca4b
commit
56b190f7c0
|
@ -46,7 +46,7 @@ type Log struct {
|
|||
|
||||
// certspotter-specific extensions
|
||||
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
|
||||
}
|
||||
|
|
|
@ -38,15 +38,15 @@ func downloadJobSize(ctlog *loglist.Log) uint64 {
|
|||
} else if ctlog.GetEntriesSize != 0 {
|
||||
return uint64(ctlog.GetEntriesSize)
|
||||
} else {
|
||||
return 256
|
||||
return 1000
|
||||
}
|
||||
}
|
||||
|
||||
func downloadWorkers(ctlog *loglist.Log) int {
|
||||
if ctlog.DownloadWorkers != 0 {
|
||||
return ctlog.DownloadWorkers
|
||||
if ctlog.ParallelGetEntries != 0 {
|
||||
return ctlog.ParallelGetEntries
|
||||
} else {
|
||||
return 4
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue