From d5e94124fe1fa1c0403cc218d7466dfb9b6f003a Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 5 Oct 2020 09:45:11 +0100 Subject: [PATCH] Don't store backfilled events using request context --- 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 6447e5d59..47780bc8b 100644 --- a/syncapi/routing/messages.go +++ b/syncapi/routing/messages.go @@ -412,7 +412,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{},