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

pull/295/head
afa 2 years ago
parent 204f61052f
commit eef501ec77

@ -185,7 +185,7 @@ 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(())
}

Loading…
Cancel
Save