Skip to content

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

refactor(storage): remove unused HashMap import in tinyflows

Steven Enamakel614296eb5ca2
diff --git a/crates/openhuman-core/src/storage/import/tinyflows.rs b/crates/openhuman-core/src/storage/import/tinyflows.rs
index dc600aea8f..b06daa52b2 100644
--- a/crates/openhuman-core/src/storage/import/tinyflows.rs
+++ b/crates/openhuman-core/src/storage/import/tinyflows.rs
@@ -20,7 +20,6 @@
//! - an embedded agent's `agents/<id>/cron/jobs.db` goes to that agent's scope
//! ([`crate::storage::scope_for_agent`]), the one its cron calls resolve to.
-use std::collections::HashMap;
use std::path::{Path, PathBuf};
use std::sync::Arc;
#[cfg(feature = "flows")]
diff --git a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
index 2fb882637e..ca1123ef40 100644
--- a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
+++ b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
@@ -375,6 +375,7 @@ async fn fallback_backend_migrates_legacy_catalog_state_without_importing_files(
let (dir, mut config) = workspace();
config.components.tinyflows = true;
+ let legacy_files_before = tree(dir.path());
let _restore = FallbackStorageRestore {
previous: crate::storage::installed(),
workspace: config.workspace_dir.clone(),
@@ -417,7 +418,7 @@ async fn fallback_backend_migrates_legacy_catalog_state_without_importing_files(
flow_import_marker_done(&backend, &config).is_ok_and(|done| !done),
"the unbooted local fallback must not run the workspace-file importer"
);
- assert!(dir.path().join("flows/flows.db").is_file());
+ assert_eq!(tree(dir.path()), legacy_files_before);
crate::storage::local::forget(&config.workspace_dir);
}