Fixing flashdecoding (empty batch doesn't work).

This commit is contained in:
Nicolas Patry 2024-09-12 17:26:53 +02:00
parent f6697baf31
commit a08f7eb993
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863

View File

@ -436,6 +436,12 @@ impl State {
batch_entries.insert(id, entry);
}
// Empty batch
if batch_requests.is_empty() {
tracing::debug!("Filterered out all entries");
return None;
}
// Final batch size
let size = batch_requests.len() as u32;
next_batch_span.record("batch_size", size);