From 7e86f81909702366021b25e751faad2ef2eaa030 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 29 Jun 2021 14:15:13 +0100 Subject: [PATCH] Use request context for final new event, since a timeout will ultimately result in a retry --- federationapi/routing/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index 291b68e1..1ff15173 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -546,7 +546,7 @@ func (t *txnReq) processEvent(ctx context.Context, e *gomatrixserverlib.Event) e // If the event fail auth checks, gmsl.NotAllowed error will be returned which we be silently // discarded by the caller of this function return api.SendEvents( - context.Background(), + ctx, t.rsAPI, api.KindNew, []*gomatrixserverlib.HeaderedEvent{