From c298339f981391adc5ff6a463a995db0b9e18364 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Mon, 10 Apr 2023 20:40:03 -0700 Subject: [PATCH] proto_op_store: Add two minor comments --- lib/src/simple_op_store.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/simple_op_store.rs b/lib/src/simple_op_store.rs index 68da868ef..f10f82790 100644 --- a/lib/src/simple_op_store.rs +++ b/lib/src/simple_op_store.rs @@ -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(),