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

Deliver chainHead_storage items progressively #1605

Merged
merged 21 commits into from
Jan 24, 2024
Merged

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jan 24, 2024

Close #1600

This PR refactors SyncService::storage_query to return a StorageQuery struct that must be advanced progressively by the API user.
This allows knowing the items as soon as they are obtained from the networking, and allows interrupting requests before all the results have been obtained.

As such, the implementation of chainHead_storage was updated to do exactly that.

@tomaka tomaka added this pull request to the merge queue Jan 24, 2024
Merged via the queue into smol-dot:main with commit 6b62f40 Jan 24, 2024
22 checks passed
@tomaka tomaka deleted the issue-1600 branch January 24, 2024 16:09
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.

Enhancing Data Delivery Efficiency in chainHead_unstable_storage Calls
1 participant