From fbc7149d60137afed54a918a99895d8a2442ea22 Mon Sep 17 00:00:00 2001 From: Tony Date: Tue, 15 Oct 2024 22:47:57 +0800 Subject: [PATCH] Remove load --- plugins/store/src/store.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/store/src/store.rs b/plugins/store/src/store.rs index 409a13e4..4d2db22b 100644 --- a/plugins/store/src/store.rs +++ b/plugins/store/src/store.rs @@ -172,7 +172,6 @@ impl StoreBuilder { pub(crate) fn build_inner( mut self, - load: bool, mut stores: MutexGuard<'_, HashMap>, ) -> crate::Result<(Arc>, ResourceId)> { if stores.contains_key(&self.path) { @@ -229,7 +228,7 @@ impl StoreBuilder { pub(crate) fn create_inner(self) -> crate::Result<(Arc>, ResourceId)> { let stores = self.app.state::().stores.clone(); - self.build_inner(false, stores.lock().unwrap()) + self.build_inner(stores.lock().unwrap()) } /// Get the existing store with the same path or creates a new [`Store`]. @@ -259,7 +258,7 @@ impl StoreBuilder { return Ok((self.app.resources_table().get(*rid).unwrap(), *rid)); } - self.build_inner(true, stores_) + self.build_inner(stores_) } }