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
Session Commits Persistence Implementation #98
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.
LGTM, one nit
vmx/src/commit.rs
Outdated
@@ -147,6 +197,46 @@ impl SessionCommits { | |||
None => Err(SessionError("unknown session commit id".into())), | |||
} | |||
} | |||
|
|||
pub fn read<P: AsRef<Path>>(path: P) -> Result<Self, Error> { |
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.
naming here, using "read/write" is very generic and overlaps with the Read and Write traits unnecessarily, consider store/restore or something similar (in all cases where read/write is used)
Session Commits Persistence Implementation
Solves issue #89