aboutsummaryrefslogtreecommitdiff
path: root/syncapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-10-05 11:06:31 +0100
committerGitHub <noreply@github.com>2020-10-05 11:06:31 +0100
commitc4756eee0e59ba730fa7855171e18eda9dba8b5f (patch)
treeece237d68688275d50af131789772b362174b9dd /syncapi
parent3bd66ff196a84b0c96763850228c379b2a124fb6 (diff)
Don't store backfilled events using request context (#1478)
Diffstat (limited to 'syncapi')
-rw-r--r--syncapi/routing/messages.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/routing/messages.go b/syncapi/routing/messages.go
index 9c6c6a80..e5299f20 100644
--- a/syncapi/routing/messages.go
+++ b/syncapi/routing/messages.go
@@ -503,7 +503,7 @@ func (r *messagesReq) backfill(roomID string, backwardsExtremities map[string][]
// up in responses to sync requests.
for i := range res.Events {
_, err = r.db.WriteEvent(
- r.ctx,
+ context.Background(),
&res.Events[i],
[]gomatrixserverlib.HeaderedEvent{},
[]string{},