Skip to content

Commit

Permalink
wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Aug 30, 2023
1 parent 78a55bd commit 2c4a3ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/re_viewer/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ impl eframe::App for App {
// Save the blueprints
// TODO(2579): implement web-storage for blueprints as well
if let Some(hub) = &mut self.store_hub {
match hub.persist_app_blueprints() {
match hub.gc_and_persist_app_blueprints() {
Ok(f) => f,
Err(err) => {
re_log::error!("Saving blueprints failed: {err}");
Expand Down
7 changes: 6 additions & 1 deletion crates/re_viewer/src/store_hub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ impl StoreHub {

/// Persist any in-use blueprints to durable storage.
// TODO(#2579): implement persistence for web
pub fn persist_app_blueprints(&mut self) -> anyhow::Result<()> {
#[allow(clippy::unnecessary_wraps)]
pub fn gc_and_persist_app_blueprints(&mut self) -> anyhow::Result<()> {
re_tracing::profile_function!();
// Because we save blueprints based on their `ApplicationId`, we only
// save the blueprints referenced by `blueprint_by_app_id`, even though
Expand All @@ -240,6 +241,10 @@ impl StoreHub {
self.blueprint_last_save
.insert(blueprint_id.clone(), blueprint.generation());
}
#[cfg(target_arch = "wasm32")]
{
_ = app_id;
}
}
}
}
Expand Down

0 comments on commit 2c4a3ec

Please sign in to comment.