Use GME context for roomserver queuing

This commit is contained in:
Neil Alexander 2021-06-29 14:13:44 +01:00
parent efb9588a36
commit 957b3787c2
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 20 additions and 17 deletions

View file

@ -734,7 +734,7 @@ func (t *txnReq) processEventWithMissingState(
// newly resolved state. This marks the "oldest" point in the backfill and
// sets the baseline state for any new events after this.
err = api.SendEventWithState(
context.Background(),
gmectx,
t.rsAPI,
api.KindOld,
resolvedState,
@ -754,7 +754,7 @@ func (t *txnReq) processEventWithMissingState(
headeredNewEvents[i] = newEvent.Headered(roomVersion)
}
if err = api.SendEvents(
context.Background(),
gmectx,
t.rsAPI,
api.KindOld,
append(headeredNewEvents, e.Headered(roomVersion)),