Skip to content

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

chore: files changed crates/openhuman-core/src/cron/client_testing.rs,crates/openhuman-core/src/cron

Steven Enamakelca761576e434
diff --git a/crates/openhuman-core/src/cron/client_testing.rs b/crates/openhuman-core/src/cron/client_testing.rs
index aa505af429..37f0f64da3 100644
--- a/crates/openhuman-core/src/cron/client_testing.rs
+++ b/crates/openhuman-core/src/cron/client_testing.rs
@@ -7,14 +7,11 @@ use std::sync::Arc;
use tinyflows_bus::schedule::types::CronRun;
use tinyflows_bus::schedule::CronJob;
-fn run<T: Send + 'static>(
+fn run<T: DeserializeOwned + Send + 'static>(
backend: &Arc<dyn StorageBackend>,
scope: &Scope,
operation: StoreOperation,
-) -> Result<T>
-where
- T: DeserializeOwned,
-{
+) -> Result<T> {
let config = Config::default();
let scope = DocScope::on_backend(&config, Arc::clone(backend), scope.clone());
crate::storage::block_on_anyhow(async move { store_in(&config, &scope, operation).await })
diff --git a/crates/openhuman-core/src/cron/scheduler_dispatch_tests.rs b/crates/openhuman-core/src/cron/scheduler_dispatch_tests.rs
index d903a547e6..51ce3e207f 100644
--- a/crates/openhuman-core/src/cron/scheduler_dispatch_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler_dispatch_tests.rs
@@ -6,7 +6,6 @@ use super::*;
use crate::cron::system_job_handlers::{register, SystemJobContext};
use crate::cron::system_jobs::ensure_system_job;
use std::sync::atomic::{AtomicUsize, Ordering};
-use std::time::Duration;
use tempfile::TempDir;
use tinyflows_bus::schedule::types::Schedule;
use tinyflows_bus::schedule::JobPolicy;