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
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -203,6 +203,9 @@ impl Service {
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() {