From 9b720d8222dcaf162fc33374d1284c93b3883774 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Sun, 12 Jan 2025 12:51:54 +0330 Subject: [PATCH] Increasing the chunk size to 32768 bytes --- core/scripts/hysteria2/update_geo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/scripts/hysteria2/update_geo.py b/core/scripts/hysteria2/update_geo.py index ba25ff3..4c63505 100644 --- a/core/scripts/hysteria2/update_geo.py +++ b/core/scripts/hysteria2/update_geo.py @@ -31,7 +31,7 @@ def remove_file(file_path): except Exception as e: print(f"Error removing file {file_path}: {e}") -def download_file(url, destination, chunk_size=8192): +def download_file(url, destination, chunk_size=32768): try: destination_dir = os.path.dirname(destination) if destination_dir and not os.path.exists(destination_dir):