Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(config): fix module paths for ConfigDocumentSnapshot

Steven Enamakel1743cdbb5b1e
diff --git a/crates/openhuman-core/src/config/schema/load/impl_load.rs b/crates/openhuman-core/src/config/schema/load/impl_load.rs
index b182f1676a..b93f1e41a9 100644
--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs
+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs
@@ -412,7 +412,7 @@ impl Config {
tracing::debug!(source = source.label(), "[config] saving config");
let expected = expected_snapshot.version;
let version = source.write_versioned(&toml_str, expected).await?;
- *self.document_snapshot.lock().unwrap() = super::ConfigDocumentSnapshot {
+ *self.document_snapshot.lock().unwrap() = super::super::ConfigDocumentSnapshot {
version,
anchor: Some(source_anchor.clone()),
};
@@ -426,10 +426,11 @@ impl Config {
let current_state = current.document_snapshot.lock().unwrap().clone();
if current_state == expected_snapshot {
let mut published = self.clone();
- *published.document_snapshot.lock().unwrap() = super::ConfigDocumentSnapshot {
- version,
- anchor: Some(source_anchor),
- };
+ *published.document_snapshot.lock().unwrap() =
+ super::super::ConfigDocumentSnapshot {
+ version,
+ anchor: Some(source_anchor),
+ };
*current = published;
}
}
diff --git a/crates/openhuman-core/src/config/schema/types/config.rs b/crates/openhuman-core/src/config/schema/types/config.rs
index fed57f4500..41862e536c 100644
--- a/crates/openhuman-core/src/config/schema/types/config.rs
+++ b/crates/openhuman-core/src/config/schema/types/config.rs
@@ -11,7 +11,7 @@ use crate::config::schema::*;
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub(crate) struct ConfigDocumentSnapshot {
pub version: Option<tinystoragedrivers::Version>,
- pub anchor: Option<super::load::source::ConfigSourceAnchor>,
+ pub anchor: Option<super::super::load::source::ConfigSourceAnchor>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonSchema)]