-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: Return root result without blocking due to sparse trie Drop #14333
Conversation
duplicate of #14331 |
6a14d00
to
b425fee
Compare
b425fee
to
d9892b2
Compare
d9892b2
to
1185c5b
Compare
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.
approving stylistic changes. not sure if it was out of scope to change the panics to errors, pending @Rjected
crates/trie/parallel/src/root.rs
Outdated
#[error("retention must be enabled")] | ||
RetentionNotEnabled, | ||
/// Sparse Tree not revealed and Retention not enabled . | ||
#[error("Both root and trie_update should be visible")] |
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.
#[error("Both root and trie_update should be visible")] | |
#[error("both root and trie update should be visible")] |
nitpick, discouraged to use variable names in error messages
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.
I'd like to wait until #14393 is in, because that will let us get rid of two of these error variants and greatly simplify the errors here
1185c5b
to
fd388c6
Compare
reverted the error changes because I think we should instead either create a new sparse-trie specific variant of the |
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.
ty @varun-doshi!
Fixes #14316