STRA-338 S16: keep vision_http.rs within its size baseline (the gate failed on the previous commit by 3 lines)

This commit is contained in:
Pavlo Ratushnyi
2026-11-05 20:07:20 +01:00
parent 35bf3a03d3
commit c73fd4189f
+2 -5
View File
@@ -75,8 +75,7 @@ fn fake_encoder(dir: &Path, mode: &str) -> VisionConfig {
struct Harness {
base: String,
dir: PathBuf,
/// The concrete encoder: the state only holds it as a port.
vision: Option<Arc<Vision>>,
vision: Option<Arc<Vision>>, // concrete; the state holds it as a port
stop: watch::Sender<bool>,
worker: tokio::task::JoinHandle<()>,
server: tokio::task::JoinHandle<()>,
@@ -122,9 +121,7 @@ impl Harness {
tokenizer: Some(Arc::new(strata_control::codec::qwen_codec_shared(
tokenizer.clone(),
))),
vision: vision
.clone()
.map(|v| v as strata_control::ports::SharedVisionEncoder),
vision: vision.clone().map(|v| v as _),
..Default::default()
};
let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();