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_) } }