mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-08-28 11:54:22 +00:00
fix: Don't try and fetch zero events
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user