test(telegram): cover draft streaming paths and simplify stream modes
This commit is contained in:
parent
e21fe1ff55
commit
e326e12039
3 changed files with 72 additions and 9 deletions
|
|
@ -10,8 +10,7 @@ pub use schema::{
|
|||
PeripheralBoardConfig, PeripheralsConfig, QueryClassificationConfig, ReliabilityConfig,
|
||||
ResourceLimitsConfig, RuntimeConfig, SandboxBackend, SandboxConfig, SchedulerConfig,
|
||||
SecretsConfig, SecurityConfig, SlackConfig, StreamMode, TelegramConfig, TunnelConfig,
|
||||
WebSearchConfig,
|
||||
WebhookConfig,
|
||||
WebSearchConfig, WebhookConfig,
|
||||
};
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
|||
|
|
@ -1449,9 +1449,6 @@ pub enum StreamMode {
|
|||
Off,
|
||||
/// Update a draft message with every flush interval.
|
||||
Partial,
|
||||
/// Update a draft message in larger chunks (reserved for future use;
|
||||
/// currently behaves the same as `Partial`).
|
||||
Block,
|
||||
}
|
||||
|
||||
fn default_draft_update_interval_ms() -> u64 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue