Skip to content

Commit

Permalink
panic on Expected header frame
Browse files Browse the repository at this point in the history
  • Loading branch information
rklaehn committed Jun 24, 2024
1 parent aba70ea commit ccd4456
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion iroh/src/client/blobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ccd4456

Please sign in to comment.