+4
-6
services/cadet/src/ingestors/car/car_import.rs
+4
-6
services/cadet/src/ingestors/car/car_import.rs
···
768
768
769
769
// Test that we can decode the records
770
770
for cid in importer.cids() {
771
-
if let Ok(ipld) = importer.decode_cbor(&cid) {
772
-
if let Ipld::Map(map) = &ipld {
773
-
if let Some(Ipld::String(record_type)) = map.get("$type") {
774
-
assert!(record_type.starts_with("fm.teal.alpha."));
775
-
println!("Found Teal record: {}", record_type);
776
-
}
771
+
if let Ok(Ipld::Map(map)) = importer.decode_cbor(&cid) {
772
+
if let Some(Ipld::String(record_type)) = map.get("$type") {
773
+
assert!(record_type.starts_with("fm.teal.alpha."));
774
+
println!("Found Teal record: {}", record_type);
777
775
}
778
776
}
779
777
}