hack: stip data frame prefix

This commit is contained in:
Cole Mickens 2024-08-08 16:26:48 -07:00
parent f82811cc9c
commit c0b8f7b57b

View file

@ -373,6 +373,8 @@ async fn main_cli() -> Result<()> {
// TODO: hacky, could be better
continue
}
// TOOD: another sorta hack
let event_str = event_str.strip_prefix("data: ".as_bytes()).unwrap(); // TODO: omg
let event: BuiltPathResponseEventV1 = serde_json::from_slice(&event_str)?;
// TODO(colemickens): error handling:::