fix(store): Load state from disk and extend defaults, fixes #296 (#295)

* fix(store): Load state from disk and extend defaults, fixes #296

* fmt
This commit is contained in:
afa
2023-04-02 17:37:29 +08:00
committed by GitHub
parent 204f61052f
commit 06f39586af
+2 -1
View File
@@ -185,7 +185,8 @@ impl<R: Runtime> Store<R> {
let bytes = read(store_path)?;
self.cache = (self.deserialize)(&bytes).map_err(Error::Deserialize)?;
self.cache
.extend((self.deserialize)(&bytes).map_err(Error::Deserialize)?);
Ok(())
}