fixed the network error when files number exceed 60-70

increased the timeout sec from 30 to 120
and added batching if batch size exceeds 50(thats where it seems to
cause problem)
This commit is contained in:
glitchySid
2025-12-30 19:27:45 +05:30
parent 7c551126cc
commit 9843303d9a
2 changed files with 62 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ pub async fn handle_organization(
);
let mut plan: OrganizationPlan = match client
.organize_files_with_cache(batch.filenames, Some(&mut cache), Some(&download_path))
.organize_files_in_batches(batch.filenames, Some(&mut cache), Some(&download_path))
.await
{
Ok(plan) => plan,