Commit adds db from each session.

This commit is contained in:
2023-06-30 12:23:28 -04:00
parent 05d445c58b
commit e73fdbff75
2 changed files with 21 additions and 1 deletions

View File

@@ -41,7 +41,10 @@ impl Cache {
}
pub fn commit(&mut self, data: Store) -> FromCache {
self.data.insert(ENTRY.to_string(), data).unwrap();
let store = self.data.get_mut(ENTRY).unwrap();
for name in data.list() {
store.add(name).unwrap();
}
FromCache::Ok
}
}