From 58946662462ac8d9a610b72ce19090ecb0d4b5f2 Mon Sep 17 00:00:00 2001
From: cai <cai@nbcai.cc>
Date: Sat, 08 Aug 2026 19:21:01 +0800
Subject: [PATCH] test: enforce participant-bound observer lifecycle
---
src/asr_realtime.rs | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/asr_realtime.rs b/src/asr_realtime.rs
index c1afd25..a108c44 100644
--- a/src/asr_realtime.rs
+++ b/src/asr_realtime.rs
@@ -106,9 +106,7 @@
F: FnOnce() -> HashMap<String, String>,
{
let metadata = AudioIngressMetadata::from_participant(&read_attributes())
- .map_err(|reason| anyhow!(reason))
- .ok()
- .flatten();
+ .map_err(|reason| anyhow!(reason))?;
Self::start(
http,
config,
@@ -352,7 +350,7 @@
samples: Vec<i16>,
}
-fn session_start_line(
+pub(crate) fn session_start_line(
call_id: &str,
trace_id: &str,
turn_id: &str,
--
Gitblit v1.9.3