Review comments

This commit is contained in:
Neil Alexander 2022-09-30 12:33:26 +01:00
parent 123bc72c0c
commit 7d9bf71706
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 3 additions and 0 deletions

View file

@ -72,6 +72,9 @@ func OnIncomingMessagesRequest(
) util.JSONResponse {
var err error
// NewDatabaseTransaction is used here instead of NewDatabaseSnapshot as we
// expect to be able to write to the database in response to a /messages
// request that requires backfilling from the roomserver or federation.
snapshot, err := db.NewDatabaseTransaction(req.Context())
if err != nil {
return jsonerror.InternalServerError()