-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Abstract out AppendVec into AccountsFile enum #29815
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some musings on the name. Cause it'll only be harder to change going forward 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering about the impl
side of this enum. Is an enum the right abstraction here? Maybe a trait makes more sense, and the AppendVec and the new ColdStorage both implement that trait?
The implementation of the new storage using this enum is in #28790 (I haven't rebased yet so it's still using the old name I think we can keep the enum for now to maximize the flexibility. Once we've finalized the eventual API together with the cache and in-memory accounts representation, we can revisit here whether we want to keep the enum or do a trait instead. Converting a trait should be fast, but I would like to focus on the implementation for now, but without merging this PR I will need to constantly fix merge conflict 😂. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Abstracts out AppendVec into AccountsFile enum. This will allow different implementations of AccountsFile that support the AccountsDB.
Summary of Changes
This PR abstracts out AppendVec into AccountsFile enum.
This will allow different implementations of AccountsFile that support the AccountsDB.