From c4756eee0e59ba730fa7855171e18eda9dba8b5f Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 5 Oct 2020 11:06:31 +0100 Subject: [PATCH] Don't store backfilled events using request context (#1478) --- syncapi/routing/messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncapi/routing/messages.go b/syncapi/routing/messages.go index 9c6c6a80d..e5299f200 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{},