Browse Source

feat(node): add warning for discarding events

tags/v0.3.12-rc0
mivik 9 months ago
parent
commit
9e687ccae8
No known key found for this signature in database GPG Key ID: E8BDA67F6781E57D
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      apis/rust/node/src/event_stream/scheduler.rs

+ 1
- 0
apis/rust/node/src/event_stream/scheduler.rs View File

@@ -54,6 +54,7 @@ impl Scheduler {
if let Some((size, queue)) = self.event_queues.get_mut(event_id) {
// Remove the oldest event if at limit
if &queue.len() >= size {
tracing::warn!("Discarding event for input `{event_id}` due to queue size limit");
queue.pop_front();
}
queue.push_back(event);


Loading…
Cancel
Save