Parallelize cloud library listing

This commit is contained in:
ShukeBta
2026-06-16 15:21:19 +08:00
parent 18ae6df115
commit 829b88036a
5 changed files with 272 additions and 21 deletions
+10
View File
@@ -49,6 +49,16 @@ func ApplyRuntimeSetting(cfg *config.Config, key, value string) {
}
cfg.App.FFprobeMaxConcurrent = n
}
case "cloud.scan_max_concurrent", "cloud.scan_list_concurrency", "app.cloud_scan_max_concurrent":
if n, err := strconv.Atoi(value); err == nil {
if n < 1 {
n = 1
}
if n > 16 {
n = 16
}
cfg.App.CloudScanMaxConcurrent = n
}
case "app.max_cpu_threads", "runtime.max_cpu_threads":
if n, err := strconv.Atoi(value); err == nil {
if n < 1 {