Fixup: Store type: read() should return Arc<RWLock<>>, update() should take that
This commit is contained in:
parent
9d265159ee
commit
4f8aacfa5a
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::result::Result as RResult;
|
use std::result::Result as RResult;
|
||||||
|
use std::sync::Arc;
|
||||||
|
use std::sync::RWLock;
|
||||||
|
|
||||||
pub use entry::Entry;
|
pub use entry::Entry;
|
||||||
pub use error::StoreError;
|
pub use error::StoreError;
|
||||||
|
@ -16,11 +18,11 @@ impl Store {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn read(path: PathBuf) -> Result<Entry> {
|
pub fn read(path: PathBuf) -> Result<Arc<RWLock<Entry>>> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update(entry: Entry) -> Result<()> {
|
pub fn update(entry: Arc<RWLock<Entry>>) -> Result<()> {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue