Skip to content

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

refactor(storage): simplify tinyjuice savings import context usage

Steven Enamakelfa349a852ae1
diff --git a/crates/openhuman-core/src/modules/storage_import_tinyjuice_savings.rs b/crates/openhuman-core/src/modules/storage_import_tinyjuice_savings.rs
index a4a6197fb5..981dc168b5 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinyjuice_savings.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinyjuice_savings.rs
@@ -69,7 +69,6 @@ where
}
let marker = support::marker_id("savings", file);
let file = file.to_owned();
- let ctx_for_read = ctx.clone();
let result = support::with_module_claim(
ctx,
MODULE_ID,
@@ -77,7 +76,7 @@ where
&marker,
move |scoped| {
crate::storage::block_on_anyhow(async move {
- import_into(&ctx_for_read, &scoped, &file, adopt).await
+ import_into(&scoped, &file, adopt).await
})
},
)?;