From eef501ec77b3566315fcaac4f4b0c8d01284b63f Mon Sep 17 00:00:00 2001 From: afa Date: Fri, 31 Mar 2023 23:30:10 +0800 Subject: [PATCH] fix(store): Load state from disk and extend defaults, fixes #296 --- plugins/store/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/store/src/store.rs b/plugins/store/src/store.rs index 5ca2f8e9..10ff2e3a 100644 --- a/plugins/store/src/store.rs +++ b/plugins/store/src/store.rs @@ -185,7 +185,7 @@ impl Store { 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(()) }