Mark store entry as borrowed
This commit is contained in:
parent
86ab4ba4b1
commit
540348380e
1 changed files with 2 additions and 1 deletions
|
@ -152,7 +152,8 @@ impl Store {
|
||||||
let mut entries = hsmap.unwrap();
|
let mut entries = hsmap.unwrap();
|
||||||
let mut store_entry = entries.entry(id.clone()).or_insert_with(|| StoreEntry::new(id.clone()));
|
let mut store_entry = entries.entry(id.clone()).or_insert_with(|| StoreEntry::new(id.clone()));
|
||||||
|
|
||||||
// TODO: update the store entry status
|
// update the store entry status
|
||||||
|
store_entry.status = StoreEntryStatus::Borrowed;
|
||||||
|
|
||||||
// make a file lock entry from the store entry
|
// make a file lock entry from the store entry
|
||||||
store_entry.get_entry().map(|entry| FileLockEntry::new(self, entry, id))
|
store_entry.get_entry().map(|entry| FileLockEntry::new(self, entry, id))
|
||||||
|
|
Loading…
Reference in a new issue