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

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

* fmt
pull/311/head
afa 2 years ago committed by GitHub
parent 204f61052f
commit 06f39586af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save