Skip to content

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

refactor(core): remove roundtrip helper function

Steven Enamakel726d7d6bfa85
diff --git a/crates/openhuman-core/src/flows/store.rs b/crates/openhuman-core/src/flows/store.rs
index 38c577ada1..618984e464 100644
--- a/crates/openhuman-core/src/flows/store.rs
+++ b/crates/openhuman-core/src/flows/store.rs
@@ -10,7 +10,7 @@ use serde::{de::DeserializeOwned, Serialize};
use tinyflows_bus::catalog::{
self, DeleteWorkflowResult, FlowUpdateError as BusUpdateError, GetRevisionRequest,
ListRevisionsRequest, ListWorkflowsResult, PutWorkflowRequest, PutWorkflowResponse,
- SetEnabledRequest, Workflow as Flow, WorkflowRevision,
+ PutWorkflowResult, SetEnabledRequest, Workflow as Flow, WorkflowRevision,
};
use tinyflows_bus::catalog::{FlowSuggestion, SuggestionStatus};
@@ -34,14 +34,6 @@ where
})
}
-pub(crate) fn roundtrip<T, U>(value: T) -> Result<U>
-where
- T: Serialize,
- U: DeserializeOwned,
-{
- serde_json::from_value(serde_json::to_value(value)?).map_err(Into::into)
-}
-
fn put_result(response: PutWorkflowResponse) -> Result<PutWorkflowResult> {
match response {
PutWorkflowResponse::Ok(result) => Ok(result),