8000 feat(log): add an iterator over thread-local log by roman-kashitsyn · Pull Request #132 · dfinity/stable-structures · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(log): add an iterator over thread-local log #132

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 3 commits into from
Sep 19, 2023

Conversation

roman-kashitsyn
Copy link
Contributor

This change introduces a stable log iterator that can enumerate entries in stable log stored in a thread-local variable.

This simplifies dealing with stable logs a lot; currently, clients have to replicate the same logic for each log, see ckBTC for example1.

Footnotes

  1. https://github.com/dfinity/ic/blob/712910487fe14924cb80622af47b31210cab95bc/rs/bitcoin/ckbtc/minter/src/storage.rs#L37

This change introduces a stable log iterator that can enumerate entries
in stable log stored in a thread-local variable.

This simplifies dealing with stable logs a lot; currently, clients have
to replicate the same logic for each log, see ckBTC for example[^1].

[1]: https://github.com/dfinity/ic/blob/712910487fe14924cb80622af47b31210cab95bc/rs/bitcoin/ckbtc/minter/src/storage.rs#L37
@roman-kashitsyn roman-kashitsyn requested a review from a team as a code owner September 18, 2023 14:48
@roman-kashitsyn roman-kashitsyn changed the title feat(stable_log): add an iterator over thread-local log feat(log): add an iterator over thread-local log Sep 18, 2023
@roman-kashitsyn roman-kashitsyn merged commit 5de8355 into main Sep 19, 2023
@roman-kashitsyn roman-kashitsyn deleted the roman-log-iter-tl branch September 19, 2023 10:00
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.

3 participants
0