Fix #375: urgent events bypass throttle (#509)

This commit is contained in:
Félix Saparelli 2023-03-02 20:18:34 +13:00 committed by GitHub
parent 70beb51ab5
commit e841333c07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {