From e841333c076f67ec5d8bdabc34790b3b879d8a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Saparelli?= Date: Thu, 2 Mar 2023 20:18:34 +1300 Subject: [PATCH] Fix #375: urgent events bypass throttle (#509) --- crates/lib/src/action/worker.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/lib/src/action/worker.rs b/crates/lib/src/action/worker.rs index c38cf3f0..8276b5c4 100644 --- a/crates/lib/src/action/worker.rs +++ b/crates/lib/src/action/worker.rs @@ -76,7 +76,9 @@ pub async fn worker( trace!(?event, ?priority, "got event"); if priority == Priority::Urgent { - trace!("urgent event, by-passing filters"); + trace!("urgent event, by-passing filters and throttle"); + set.push(event); + break; } else if event.is_empty() { trace!("empty event, by-passing filters"); } else {