Skip to content

Conversation

@GheisMohammadi
Copy link
Collaborator

@GheisMohammadi GheisMohammadi commented Feb 27, 2025

This PR refactors the staged stream sync downloader's sync loop to enhance concurrency, remove sync overlaps caused by multiple downloader triggering. To remove the sync overlaps, if the node is syncing and the ticker fires, the trigger will attempt to queue another sync, but only if no sync is already in progress. But, if a sync is running, the trigger does nothing at that moment, avoiding unnecessary sync overlap.

@GheisMohammadi GheisMohammadi self-assigned this Feb 27, 2025
@GheisMohammadi GheisMohammadi changed the title Refactor Staged Stream Sync Downloader Loop, Improve Concurrency, Logging Refactor Staged Stream Sync Downloader Loop, Remove Sync Overlaps Feb 27, 2025
@GheisMohammadi GheisMohammadi added the staged-sync Staged Sync label Feb 27, 2025
@sophoah
Copy link
Contributor

sophoah commented Feb 28, 2025

@sunwavesun @Frozen

@sophoah sophoah merged commit 6ca5326 into dev Mar 3, 2025
4 checks passed
@sophoah sophoah deleted the improve/sss_downloader_loop branch March 3, 2025 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staged-sync Staged Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants