Skip to content

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

refactor(storage): remove legacy batch sending function

Steven Enamakel1370a3021122
diff --git a/crates/openhuman-core/src/storage/import/tinyflows.rs b/crates/openhuman-core/src/storage/import/tinyflows.rs
index 47de34c24e..777e831b15 100644
--- a/crates/openhuman-core/src/storage/import/tinyflows.rs
+++ b/crates/openhuman-core/src/storage/import/tinyflows.rs
@@ -125,25 +125,6 @@ impl ImportTotals {
}
}
-#[cfg(feature = "flows")]
-async fn send_legacy_batch(
- proxy: &tinybus::Proxy,
- storage: &tinyflows_bus::catalog::CatalogStorage,
- records: Vec<tinyflows_bus::catalog::LegacyImportRecord>,
-) -> Result<()> {
- use tinyflows_bus::catalog::{self, ImportLegacyBatchRequest, ImportLegacyBatchResponse};
-
- let request = ImportLegacyBatchRequest {
- storage: storage.clone(),
- records,
- };
- let response: ImportLegacyBatchResponse = proxy
- .call(catalog::members::IMPORT_LEGACY_BATCH, &(request,))
- .await
- .context("send a bounded legacy flow batch to TinyFlows")?;
- Ok(())
-}
-
#[cfg(feature = "flows")]
fn flow_sources_present(dir: &Path) -> bool {
["flows.db", "checkpoints.db", "checkpoints", "drafts"]
@@ -195,6 +176,7 @@ fn import_flows_after_migration(
if !flow_sources_present(&dir) {
return Ok(None);
}
+ let dir = dir.clone();
let backend = Arc::clone(backend);
let scope = scope.clone();
let config = config.clone();