-
Notifications
You must be signed in to change notification settings - Fork 39
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: Rework consensus storage crate #10
Conversation
s.spawn_blocking(|| { | ||
consensus.replica.start_new_view(ctx, &consensus.inner); | ||
Ok(()) | ||
}) |
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.
nit: we might want to introduce some syntax sugar for this construction.
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.
Looks good. I only had a couple of minor questions. Also, I would suggest organizing the storage crate a bit differently to make stuff easier to find:
- Moving all the traits into a traits.rs file.
- Moving RocksdbStorage and all it's methods/implementations into a rocksdb.rs file.
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.
added comments
What ❔
Why ❔
Part of preparations for the integration with the server codebase.