Skip to content

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

refactor(storage): adjust imports in tinyflows module

Steven Enamakel0394c2ddfbf0
diff --git a/crates/openhuman-core/src/storage/import/tinyflows.rs b/crates/openhuman-core/src/storage/import/tinyflows.rs
index bdda9fa238..bce5ecb980 100644
--- a/crates/openhuman-core/src/storage/import/tinyflows.rs
+++ b/crates/openhuman-core/src/storage/import/tinyflows.rs
@@ -27,7 +27,7 @@ use std::sync::{LazyLock, Mutex, Weak};
use anyhow::{Context, Result};
-use super::{marker_spec, marker_step, Outcome, Report, MARKER_OWNER};
+use super::{MARKER_OWNER, Outcome, Report, marker_spec, marker_step};
use crate::config::Config;
use crate::storage::documents::Repo;
use crate::storage::import_state;
diff --git a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
index c4bf1efc56..0fd7825faa 100644
--- a/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
+++ b/crates/openhuman-core/src/storage/import/tinyflows_tests.rs
@@ -1,14 +1,14 @@
use super::*;
use crate::cron::client::testing as cron_store;
use crate::storage::{MemoryStorage, Scope};
-use serde_json::json;
use serde_json::Value;
+use serde_json::json;
use sha2::Digest;
use std::collections::BTreeMap;
use tempfile::TempDir;
use tinyflows::engine::Checkpointer;
-use tinyflows_drivers::catalog::FlowCatalogDocuments;
use tinyflows_drivers::DriverCheckpointer;
+use tinyflows_drivers::catalog::FlowCatalogDocuments;
fn fixtures() -> PathBuf {
Path::new(env!("CARGO_MANIFEST_DIR")).join("src/storage/import/fixtures/tinyflows")
@@ -522,18 +522,22 @@ async fn catalog_and_schedule_owner_migrations_cover_existing_scopes() {
for scope in [Scope::local(), profile] {
let scoped = backend.for_scope(&scope).unwrap();
- assert!(scoped
- .documents()
- .get("flows.definitions", "missing")
- .await
- .unwrap()
- .is_none());
- assert!(scoped
- .documents()
- .get("cron.jobs", "missing")
- .await
- .unwrap()
- .is_none());
+ assert!(
+ scoped
+ .documents()
+ .get("flows.definitions", "missing")
+ .await
+ .unwrap()
+ .is_none()
+ );
+ assert!(
+ scoped
+ .documents()
+ .get("cron.jobs", "missing")
+ .await
+ .unwrap()
+ .is_none()
+ );
}
}