mirror of
https://github.com/matrix-org/dendrite
synced 2025-01-07 10:48:42 +00:00
Flatten error on r.Queryer.QueryStateAfterEvents
This commit is contained in:
parent
cded673af7
commit
824841b765
1 changed files with 1 additions and 7 deletions
|
@ -72,13 +72,7 @@ func (r *Queryer) QueryStateAfterEvents(
|
|||
|
||||
prevStates, err := r.DB.StateAtEventIDs(ctx, request.PrevEventIDs)
|
||||
if err != nil {
|
||||
switch err.(type) {
|
||||
case types.MissingEventError:
|
||||
util.GetLogger(ctx).Errorf("QueryStateAfterEvents: MissingEventError: %s", err)
|
||||
return nil
|
||||
default:
|
||||
return fmt.Errorf("r.DB.StateAtEventIDs: %w", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
response.PrevEventsExist = true
|
||||
|
||||
|
|
Loading…
Reference in a new issue