Skip to content

Commit

Permalink
Revert "panic on Expected header frame"
Browse files Browse the repository at this point in the history
This reverts commit 1f7de51.
  • Loading branch information
rklaehn committed Jun 24, 2024
1 parent 9ea9361 commit 9c10d77
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions iroh/src/client/blobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -798,11 +798,7 @@ 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(_)) => {
println!("{}", std::backtrace::Backtrace::capture());
panic!("Expected header frame");
// return Err(anyhow!("Expected header frame"))
}
None | Some(Ok(_)) => return Err(anyhow!("Expected header frame")),
};

let stream = stream.map(|item| match item {
Expand Down

0 comments on commit 9c10d77

Please sign in to comment.