Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up Synchronization #4

Merged
merged 1 commit into from
Aug 20, 2023
Merged

Speed up Synchronization #4

merged 1 commit into from
Aug 20, 2023

Conversation

0x19
Copy link
Owner

@0x19 0x19 commented Aug 20, 2023

Until now, whenever sync was called it tried to check new releases from the github. That does not make sense and instead, should return cache back. It's hardcoded and no more then 4 times a day sync can attempt to sync from now on.

This ensures that on the run of the application, initial sync is done and afterwards if any goroutine calls it later on to attempt syncing, it won't spam Github API without any use.

@0x19 0x19 self-assigned this Aug 20, 2023
@0x19
Copy link
Owner Author

0x19 commented Aug 20, 2023

WIll merge in regardless of coverage decreasing. It's only for 0.2%

@0x19 0x19 merged commit d9446d7 into main Aug 20, 2023
4 checks passed
@0x19 0x19 deleted the sync-speedup branch October 6, 2023 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant