proto_op_store: Add two minor comments

This commit is contained in:
Ilya Grigoriev 2023-04-10 20:40:03 -07:00
parent cf402af9c1
commit c298339f98

View file

@ -54,6 +54,7 @@ pub struct SimpleOpStore {
}
impl SimpleOpStore {
/// Creates an empty OpStore, panics if it already exists
pub fn init(store_path: &Path) -> Self {
fs::create_dir(store_path.join("views")).unwrap();
fs::create_dir(store_path.join("operations")).unwrap();
@ -62,6 +63,7 @@ impl SimpleOpStore {
}
}
/// Load an existing OpStore
pub fn load(store_path: &Path) -> Self {
SimpleOpStore {
path: store_path.to_path_buf(),