mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Return what we have when we encounter missing events when servicing backfill/gme (#1499)
We expect to have missing events as we walk back in the DAG over federation as we didn't always create the room. When checking if the server is allowed to see those events, just give up and stop rather than fail the request.
This commit is contained in:
parent
429bd48129
commit
a846dad0e1
1 changed files with 3 additions and 1 deletions
|
@ -309,7 +309,9 @@ BFSLoop:
|
||||||
util.GetLogger(ctx).WithField("server", serverName).WithField("event_id", pre).WithError(err).Error(
|
util.GetLogger(ctx).WithField("server", serverName).WithField("event_id", pre).WithError(err).Error(
|
||||||
"Error checking if allowed to see event",
|
"Error checking if allowed to see event",
|
||||||
)
|
)
|
||||||
return resultNIDs, err
|
// drop the error, as we will often error at the DB level if we don't have the prev_event itself. Let's
|
||||||
|
// just return what we have.
|
||||||
|
return resultNIDs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the event hasn't been seen before and the HS
|
// If the event hasn't been seen before and the HS
|
||||||
|
|
Loading…
Reference in a new issue