mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-04-01 22:44:28 -05:00
Moar
This commit is contained in:
parent
2a2f84052e
commit
bab59dd1c2
|
@ -82,9 +82,11 @@ func (t *missingStateReq) processEventWithMissingState(
|
||||||
SendAsServer: api.DoNotSendToOtherServers,
|
SendAsServer: api.DoNotSendToOtherServers,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if _, ok := err.(types.RejectedError); !ok {
|
||||||
return fmt.Errorf("t.inputer.processRoomEvent: %w", err)
|
return fmt.Errorf("t.inputer.processRoomEvent: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,10 +186,13 @@ func (t *missingStateReq) processEventWithMissingState(
|
||||||
}
|
}
|
||||||
// TODO: we could do this concurrently?
|
// TODO: we could do this concurrently?
|
||||||
for _, ire := range outlierRoomEvents {
|
for _, ire := range outlierRoomEvents {
|
||||||
if _, err = t.inputer.processRoomEvent(ctx, t.db, &ire); err != nil {
|
_, err = t.inputer.processRoomEvent(ctx, t.db, &ire)
|
||||||
|
if err != nil {
|
||||||
|
if _, ok := err.(types.RejectedError); !ok {
|
||||||
return fmt.Errorf("t.inputer.processRoomEvent[outlier]: %w", err)
|
return fmt.Errorf("t.inputer.processRoomEvent[outlier]: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Now send the backward extremity into the roomserver with the
|
// Now send the backward extremity into the roomserver with the
|
||||||
// newly resolved state. This marks the "oldest" point in the backfill and
|
// newly resolved state. This marks the "oldest" point in the backfill and
|
||||||
|
|
Loading…
Reference in a new issue