Skip to content

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

refactor(memory): collapse write dispatch spawn chain onto one line

Steven Enamakel5bf3df7a73f2
diff --git a/crates/openhuman-core/src/memory/tools.rs b/crates/openhuman-core/src/memory/tools.rs
index 8602285a2b..390d8d2c35 100644
--- a/crates/openhuman-core/src/memory/tools.rs
+++ b/crates/openhuman-core/src/memory/tools.rs
@@ -195,10 +195,7 @@ impl MemoryTool {
};
let outcome = if is_write_action(&args) {
let write_dispatch = dispatch.clone();
- match write_dispatch
- .spawn(async move { call.await })
- .await
- {
+ match write_dispatch.spawn(async move { call.await }).await {
Ok(result) => result,
Err(_) => {
return ToolResult::error(render_error(