From 7b0ad24a45865b54ddabde965661d97214c369e0 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 30 Jun 2021 09:18:20 +0100 Subject: [PATCH] Return error --- 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 dec69a1f..032c0c3b 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -572,7 +572,7 @@ withNextEvent: if err != nil { logger.WithError(err).Warnf("Failed to retrieve auth event %q", missingAuthEventID) if errors.Is(err, context.DeadlineExceeded) { - break + return err } continue withNextServer }