Skip to content

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

refactor(store): simplify legacy import call signature

Steven Enamakel08e1e46ded44
diff --git a/crates/openhuman-core/src/threads/store/backend.rs b/crates/openhuman-core/src/threads/store/backend.rs
index 283104b076..f05127c386 100644
--- a/crates/openhuman-core/src/threads/store/backend.rs
+++ b/crates/openhuman-core/src/threads/store/backend.rs
@@ -117,7 +117,7 @@ pub(crate) fn import_legacy_into(
DriverConversationStore::prepare_append_schema(docs.as_ref()).await
})
.map_err(|e| format!("{LOG_PREFIX} declare the conversation schema: {e}"))?;
- super::legacy_import::import_once(workspace_dir, &repo, &store)
+ super::legacy_import::import_once(workspace_dir, &repo)
.map_err(|e| format!("{LOG_PREFIX} legacy import: {e:#}"))
}
@@ -160,7 +160,7 @@ impl ConversationStore {
.map_err(|e| anyhow::anyhow!("declare the conversation schema: {e}"))
})
.map_err(|e| format!("{LOG_PREFIX} {e:#}"))?;
- super::legacy_import::import_once(&self.workspace_dir, &repo, &store)
+ super::legacy_import::import_once(&self.workspace_dir, &repo)
.map_err(|e| format!("{LOG_PREFIX} legacy import: {e:#}"))?;
Ok(store)
}