Skip to content

Commit

Permalink
fix(store): Load state from disk and extend defaults, fixes #296 (#295)
Browse files Browse the repository at this point in the history
* fix(store): Load state from disk and extend defaults, fixes #296

* fmt
  • Loading branch information
rming authored Apr 2, 2023
1 parent 204f610 commit 06f3958
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/store/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 06f3958

Please sign in to comment.