Skip to content

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

fix(runtime): silence unused dispatch warning when channels feature is off

Steven Enamakel6233a473ae01
diff --git a/crates/openhuman-core/src/core/runtime/services.rs b/crates/openhuman-core/src/core/runtime/services.rs
index 2b06b0bab4..fd01969a5f 100644
--- a/crates/openhuman-core/src/core/runtime/services.rs
+++ b/crates/openhuman-core/src/core/runtime/services.rs
@@ -338,7 +338,10 @@ pub fn spawn_channels_service(
log::info!("[channels] OPENHUMAN_DISABLE_CHANNEL_LISTENERS set — skipping start_channels");
}
#[cfg(not(feature = "channels"))]
- log::debug!("[channels] channels feature disabled at compile time — not spawning listeners");
+ {
+ let _ = dispatch;
+ log::debug!("[channels] channels feature disabled at compile time — not spawning listeners");
+ }
None
}