mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-05-28 06:54:15 +00:00
fix: Actually flush destinations before selecting new events
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user