Skip to content

Commit

Permalink
feat(nodes/root): log base prefixes change
Browse files Browse the repository at this point in the history
  • Loading branch information
technobaboo committed Apr 13, 2024
1 parent 90f60c9 commit 47cbc2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/nodes/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ use color_eyre::eyre::Result;
use glam::Mat4;
use rustc_hash::FxHashMap;
use stardust_xr::schemas::flex::{deserialize, serialize};
use std::path::PathBuf;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use tracing::instrument;
use tracing::{info, instrument};

static ROOT_REGISTRY: Registry<Root> = Registry::new();

Expand Down Expand Up @@ -72,7 +73,9 @@ impl Root {
calling_client: Arc<Client>,
message: Message,
) -> Result<()> {
*calling_client.base_resource_prefixes.lock() = deserialize(message.as_ref())?;
let prefixes: Vec<PathBuf> = deserialize(message.as_ref())?;
info!(?client, ?prefixes, "Set base prefixes");
*calling_client.base_resource_prefixes.lock() = prefixes;
Ok(())
}

Expand Down

0 comments on commit 47cbc2b

Please sign in to comment.