Skip to content

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

refactor(core): remove is_bound from BoundRegisteredController

Steven Enamakel23af08a2d798
diff --git a/crates/openhuman-core/src/core/all_entry.rs b/crates/openhuman-core/src/core/all_entry.rs
index 6457d6bcdb..1197fb5dd5 100644
--- a/crates/openhuman-core/src/core/all_entry.rs
+++ b/crates/openhuman-core/src/core/all_entry.rs
@@ -101,11 +101,6 @@ impl BoundRegisteredController {
(self.decode)(params)
}
- #[cfg(test)]
- pub(super) fn is_bound(&self) -> bool {
- matches!(self.handler, EntryHandler::Bound(_))
- }
-
pub fn invoke(&self, ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {
(self.invoke)(ctx, params)
}
@@ -154,6 +149,11 @@ impl ControllerEntry {
}
}
+ #[cfg(test)]
+ pub(super) fn is_bound(&self) -> bool {
+ matches!(self.handler, EntryHandler::Bound(_))
+ }
+
#[cfg(test)]
pub(super) fn legacy_controller(&self) -> Option<RegisteredController> {
match &self.handler {