fix: Don't try and fetch zero events

This commit is contained in:
timedout
2026-06-27 20:13:15 +01:00
committed by Jade Ellis
parent c6acbf5440
commit a3544ba01f
@@ -5,7 +5,7 @@
Err, Event, PduEvent, debug, debug_error, debug_info, debug_warn, err, error,
state_res::lexicographical_topological_sort,
trace,
utils::{IterStream, stream::BroadbandExt},
utils::{IterStream, math::Expected, stream::BroadbandExt},
warn,
};
use futures::{StreamExt, future::select_ok};
@@ -487,6 +487,7 @@ pub async fn get_missing_events(
);
for iteration in 0..iteration_limit {
let limit = iteration
.expected_add(1)
.saturating_mul(10)
.min(GET_MISSING_EVENTS_MAX_BATCH_SIZE);
debug_info!(