hack: stip data frame prefix
This commit is contained in:
parent
f82811cc9c
commit
c0b8f7b57b
|
@ -373,6 +373,8 @@ async fn main_cli() -> Result<()> {
|
||||||
// TODO: hacky, could be better
|
// TODO: hacky, could be better
|
||||||
continue
|
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)?;
|
let event: BuiltPathResponseEventV1 = serde_json::from_slice(&event_str)?;
|
||||||
|
|
||||||
// TODO(colemickens): error handling:::
|
// TODO(colemickens): error handling:::
|
||||||
|
|
Loading…
Reference in a new issue