From c0b8f7b57b0e26d425fc8291e19e249251f15ce4 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Thu, 8 Aug 2024 16:26:48 -0700 Subject: [PATCH] hack: stip data frame prefix --- magic-nix-cache/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/magic-nix-cache/src/main.rs b/magic-nix-cache/src/main.rs index ba8d747..9379c78 100644 --- a/magic-nix-cache/src/main.rs +++ b/magic-nix-cache/src/main.rs @@ -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:::