Skip to content

Commit fbc7149

Browse files
committed
Remove load
1 parent a7af661 commit fbc7149

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugins/store/src/store.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ impl<R: Runtime> StoreBuilder<R> {
172172

173173
pub(crate) fn build_inner(
174174
mut self,
175-
load: bool,
176175
mut stores: MutexGuard<'_, HashMap<PathBuf, ResourceId>>,
177176
) -> crate::Result<(Arc<Store<R>>, ResourceId)> {
178177
if stores.contains_key(&self.path) {
@@ -229,7 +228,7 @@ impl<R: Runtime> StoreBuilder<R> {
229228

230229
pub(crate) fn create_inner(self) -> crate::Result<(Arc<Store<R>>, ResourceId)> {
231230
let stores = self.app.state::<StoreState>().stores.clone();
232-
self.build_inner(false, stores.lock().unwrap())
231+
self.build_inner(stores.lock().unwrap())
233232
}
234233

235234
/// Get the existing store with the same path or creates a new [`Store`].
@@ -259,7 +258,7 @@ impl<R: Runtime> StoreBuilder<R> {
259258
return Ok((self.app.resources_table().get(*rid).unwrap(), *rid));
260259
}
261260

262-
self.build_inner(true, stores_)
261+
self.build_inner(stores_)
263262
}
264263
}
265264

0 commit comments

Comments
 (0)