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