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
1 changed files with 3 additions and 1 deletions

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 {