diff --git a/diff.patch b/diff.patch new file mode 100644 index 0000000..3ecd41b --- /dev/null +++ b/diff.patch @@ -0,0 +1,16 @@ +diff --git a/src/sidecar/main.py b/src/sidecar/main.py +index 161deba..9c8a676 100644 +--- a/src/sidecar/main.py ++++ b/src/sidecar/main.py +@@ -63,11 +63,6 @@ def run_sync_cycle(): + + current_cycle_files = set() + +- # Prune uploaded_files set to only include files that currently exist +- # This prevents the set from growing indefinitely. +- existing_files = {str(p) for p in root.glob("**/*.m4s")} +- uploaded_files.intersection_update(existing_files) +- + # Use ThreadPoolExecutor to parallelize uploads + with ThreadPoolExecutor(max_workers=10) as executor: + for app_dir in root.iterdir(): diff --git a/src/sidecar/main.py b/src/sidecar/main.py index 161deba..9c8a676 100644 --- a/src/sidecar/main.py +++ b/src/sidecar/main.py @@ -63,11 +63,6 @@ def run_sync_cycle(): current_cycle_files = set() - # Prune uploaded_files set to only include files that currently exist - # This prevents the set from growing indefinitely. - existing_files = {str(p) for p in root.glob("**/*.m4s")} - uploaded_files.intersection_update(existing_files) - # Use ThreadPoolExecutor to parallelize uploads with ThreadPoolExecutor(max_workers=10) as executor: for app_dir in root.iterdir():