From f23bcfdd25fbc735794f5c3f4d5455f06e6294f0 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Fri, 18 Jul 2025 13:54:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=B0=8Fchunk-size?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/oss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/oss.py b/util/oss.py index f85adf4..265e3ed 100644 --- a/util/oss.py +++ b/util/oss.py @@ -35,7 +35,7 @@ def upload_to_oss(url, file_path): new_url = new_url.split("?", 1)[0] r_span.set_attribute("rclone.target_dir", new_url) if new_url != url: - result = os.system(f"rclone copyto --no-check-dest --ignore-existing --multi-thread-chunk-size 32M --multi-thread-streams 8 {file_path} {new_url}") + result = os.system(f"rclone copyto --no-check-dest --ignore-existing --multi-thread-chunk-size 8M --multi-thread-streams 8 {file_path} {new_url}") r_span.set_attribute("rclone.result", result) if result == 0: span.set_status(Status(StatusCode.OK))