fix: Actually flush destinations before selecting new events

This commit is contained in:
timedout
2026-02-27 11:18:43 +00:00
parent 5e3174493d
commit 82bd0c8e15
+3
View File
@@ -203,6 +203,9 @@ async fn handle_request<'a>(
futures: &mut SendingFutures<'a>,
statuses: &mut CurTransactionStatus,
) {
if msg.event == SendingEvent::Flush {
statuses.remove(&msg.dest);
}
let iv = vec![(msg.queue_id, msg.event)];
if let Ok(Some(events)) = self.select_events(&msg.dest, iv, statuses).await {
if !events.is_empty() {