mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
fix: Only count non-outlier prev_events in get_missing_events assertion
This commit is contained in:
1 parent
9bb203abe8
commit
ac8b17db1b
1 file changed
+6
-1
@@ -155,7 +155,12 @@ impl super::Service {
|
||||
.prev_events()
|
||||
.stream()
|
||||
.fold(0_u8, |i, event_id| async move {
|
||||
if self.services.timeline.pdu_exists(event_id).await {
|
||||
if self
|
||||
.services
|
||||
.timeline
|
||||
.non_outlier_pdu_exists(event_id)
|
||||
.await
|
||||
{
|
||||
i
|
||||
} else {
|
||||
i.expected_add(1)
|
||||
|
||||
Reference in new issue
Block a user