mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-24 12:48:55 +00:00
proto_op_store: Add two minor comments
This commit is contained in:
parent
cf402af9c1
commit
c298339f98
1 changed files with 2 additions and 0 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue