We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddef910 commit 7479380Copy full SHA for 7479380
core/src/subgraph/trigger_processor.rs
@@ -420,8 +420,8 @@ where
420
421
// Always decrement queue depth by the number of processed triggers
422
// This ensures cleanup even if processing failed partway through
423
- if processed_count > 0 {
424
- subgraph_state.queue_depth.fetch_sub(processed_count, Ordering::Relaxed);
+ if !triggers.is_empty() {
+ subgraph_state.queue_depth.fetch_sub(triggers.len(), Ordering::Relaxed);
425
}
426
427
result
0 commit comments