Skip to content

Commit

Permalink
no clue wth this is
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Dec 9, 2024
1 parent 75a382d commit d8abb0b
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions crates/top/re_sdk/src/recording_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1025,28 +1025,6 @@ impl RecordingStream {

let components: ChunkComponents = components?.into_iter().collect();

{
let mut all_lengths =
timelines
.values()
.map(|timeline| (timeline.name(), timeline.num_rows()))
.chain(components.iter_flattened().map(|(descr, list_array)| {
(descr.component_name.as_str(), list_array.len())
}));

if let Some((_, expected)) = all_lengths.next() {
for (name, len) in all_lengths {
if len != expected {
return Err(RecordingStreamError::Chunk(ChunkError::Malformed {
reason: format!(
"Mismatched lengths: '{name}' has length {len} but expected {expected}",
),
}));
}
}
}
}

let chunk = Chunk::from_auto_row_ids(id, ent_path.into(), timelines, components)?;

self.send_chunk(chunk);
Expand Down

0 comments on commit d8abb0b

Please sign in to comment.