We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd319d6 commit 2249944Copy full SHA for 2249944
1 file changed
src/firehose/blocks.rs
@@ -54,9 +54,8 @@ fn parse_car(car_bytes: &[u8]) -> anyhow::Result<Vec<Record>> {
54
// encode the raw CID bytes as a base32 link string
55
//let cid = cid_to_link(cid_bytes);
56
57
- match ciborium::from_reader::<Record, _>(&mut Cursor::new(cbor)) {
58
- Ok(record) => records.push(record),
59
- Err(_) => {} // not a record block (e.g. CAR root node), skip
+ if let Ok(record) = ciborium::from_reader::<Record, _>(&mut Cursor::new(cbor)) {
+ records.push(record);
60
}
61
62
cursor.set_position(end as u64);
0 commit comments