Skip to content

feat: cache candidate pools for 15 minutes #57

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

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

coreyar
Copy link
Contributor

@coreyar coreyar commented Aug 27, 2024

Querying candidate pools is a slow and uses a lot of network resources. To increase the speed of the script we can cache the results for 15 minutes.

If we can't find a valid swap with the queried pools we also invalidate the cache.

@coreyar coreyar force-pushed the cache-candidate-pools branch 2 times, most recently from 9120b7a to e9126ad Compare August 27, 2024 16:40
@coreyar coreyar force-pushed the cache-candidate-pools branch from e9126ad to a507079 Compare August 27, 2024 16:42
@coreyar coreyar merged commit c450792 into develop Aug 27, 2024
4 checks passed
@coreyar coreyar deleted the cache-candidate-pools branch November 4, 2024 07:51
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.

2 participants