Skip to content

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

refactor(embed): drop redundant clone on telegram stream_mode

Steven Enamakelcecbdcdda6e5
diff --git a/crates/openhuman-embed/src/channels.rs b/crates/openhuman-embed/src/channels.rs
index bce559232f..ba68c6e397 100644
--- a/crates/openhuman-embed/src/channels.rs
+++ b/crates/openhuman-embed/src/channels.rs
@@ -210,7 +210,7 @@ pub(crate) fn telegram_config(base: &Config, spec: &TelegramChannelSpec) -> Conf
.expect("a TelegramConfig with its required fields deserializes");
telegram.chat_id = spec.chat_id.clone();
telegram.mention_only = spec.mention_only;
- telegram.stream_mode = spec.stream_mode.clone();
+ telegram.stream_mode = spec.stream_mode;
config.channels_config = openhuman_core::config::schema::ChannelsConfig {
telegram: Some(telegram),
message_timeout_secs: base.channels_config.message_timeout_secs,