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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user