The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(core): adjust tinyjuice savings import logic
Steven Enamakel5fab1499b5b7
diff --git a/crates/openhuman-core/src/modules/mod.rs b/crates/openhuman-core/src/modules/mod.rsindex bc53fcfbf8..0d8434ac85 100644--- a/crates/openhuman-core/src/modules/mod.rs+++ b/crates/openhuman-core/src/modules/mod.rs@@ -445,20 +445,24 @@ pub async fn import_legacy_tinyjuice_savings(#[cfg(all(feature = "modules", feature = "legacy-import"))]{let file = storage_import_tinyjuice_savings::legacy_file(workspace_dir);+ let client = client.clone();import_once(ctx,"tinyjuice-savings",storage_grant_schemas::tinyjuice::MODULE_ID,&file,- storage_import_tinyjuice_savings::import_legacy(ctx, &file, |aggregate| async move {- client- .call::<bool>(- "tinyjuice",- tinyjuice_bus::names::methods::IMPORT_SAVINGS,- (aggregate,),- )- .await- .map_err(|e| anyhow::anyhow!("ImportSavings: {e}"))+ storage_import_tinyjuice_savings::import_legacy(ctx, &file, move |aggregate| {+ let client = client.clone();+ async move {+ client+ .call::<bool>(+ "tinyjuice",+ tinyjuice_bus::names::methods::IMPORT_SAVINGS,+ (aggregate,),+ )+ .await+ .map_err(|e| anyhow::anyhow!("ImportSavings: {e}"))+ }}),).await;