Skip to content

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

fix(storage): capture url by move in local backend open

Steven Enamakel6c4eb266c0a8
diff --git a/crates/openhuman-core/src/storage/local.rs b/crates/openhuman-core/src/storage/local.rs
index a024cbdd54..43f8159e43 100644
--- a/crates/openhuman-core/src/storage/local.rs
+++ b/crates/openhuman-core/src/storage/local.rs
@@ -361,7 +361,7 @@ fn open_standing_local(
None => {
let dir = db_path.with_extension("files");
let url = format!("file:{}", dir.display());
- let backend = super::block_on_anyhow(async { Ok(super::open(&url).await?) })
+ let backend = super::block_on_anyhow(async move { Ok(super::open(&url).await?) })
.with_context(|| format!("[{domain}] open {}", dir.display()))?;
import(&backend, &Scope::local(), config).with_context(|| {
format!("[{domain}] importing the legacy files failed; they are untouched")