限制主动下载的速度

This commit is contained in:
2025-04-27 04:34:25 +08:00
parent e9d80cecc7
commit 2e41f72e0e

View File

@ -41,7 +41,7 @@ public class VideoReUploader {
private static final ThreadFactory threadFactory = new ThreadFactoryBuilder()
.setNamePrefix("Vid-ReUp-")
.build();
private static final ThreadPoolExecutor executor = new ThreadPoolExecutor(8, 1024, 0L, TimeUnit.MILLISECONDS,
private static final ThreadPoolExecutor executor = new ThreadPoolExecutor(1, 1024, 0L, TimeUnit.MILLISECONDS,
new ArrayBlockingQueue<>(1024),
threadFactory
);