[core] Use dynamic chunk size for downloading maps

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-07-02 21:18:29 +07:00
committed by Konstantin Pastbin
parent dee47e7a66
commit 1becd3e0ba
4 changed files with 31 additions and 12 deletions

View File

@@ -59,7 +59,7 @@ public:
std::string const & filePath, int64_t fileSize,
Callback && onFinish,
Callback && onProgress = Callback(),
int64_t chunkSize = 512 * 1024,
int64_t chunkSize = 0, // 0 for auto
bool doCleanOnCancel = true);
};
} // namespace downloader