From ccd4456277f7d0b4e49149c7a788553f68e866e5 Mon Sep 17 00:00:00 2001 From: Ruediger Klaehn Date: Mon, 24 Jun 2024 13:05:18 +0300 Subject: [PATCH] panic on Expected header frame --- iroh/src/client/blobs.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/iroh/src/client/blobs.rs b/iroh/src/client/blobs.rs index 861060b751f..d5e3f6d9960 100644 --- a/iroh/src/client/blobs.rs +++ b/iroh/src/client/blobs.rs @@ -798,7 +798,11 @@ impl Reader { let (size, is_complete) = match stream.next().await { Some(Ok(BlobReadAtResponse::Entry { size, is_complete })) => (size, is_complete), Some(Err(err)) => return Err(err), - None | Some(Ok(_)) => return Err(anyhow!("Expected header frame")), + None | Some(Ok(_)) => { + println!("{}", std::backtrace::Backtrace::new()); + panic!("Expected header frame"); + // return Err(anyhow!("Expected header frame")) + } }; let stream = stream.map(|item| match item {