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/scheduler_dispatch_tests.rs

Steven Enamakele2015f95848c
diff --git a/crates/openhuman-core/src/cron/scheduler_dispatch_tests.rs b/crates/openhuman-core/src/cron/scheduler_dispatch_tests.rs
index e3876088b0..b27d0c7a83 100644
--- a/crates/openhuman-core/src/cron/scheduler_dispatch_tests.rs
+++ b/crates/openhuman-core/src/cron/scheduler_dispatch_tests.rs
@@ -34,7 +34,7 @@ fn security(config: &Config) -> Arc<SecurityPolicy> {
/// A system job row named `name`, already due.
fn due_system_job(config: &Config, name: &str) -> CronJob {
- let mut job = ensure_system_job(
+ let job = ensure_system_job(
config,
name,
Schedule::Every {
@@ -42,7 +42,7 @@ fn due_system_job(config: &Config, name: &str) -> CronJob {
},
)
.unwrap();
- // Due now, both in the row the next poll reads and in the value we pass.
+ // Due now in the row the next poll reads.
crate::cron::update_job(
config,
&job.id,
@@ -56,7 +56,6 @@ fn due_system_job(config: &Config, name: &str) -> CronJob {
.unwrap();
force_due(config, &job.id);
// The runtime claims against the stored row, so hand back exactly that.
- let _ = &mut job;
cron::get_job(config, &job.id).unwrap()
}