From 77fb981da58e7ed8d7292e848cb1140368222af9 Mon Sep 17 00:00:00 2001 From: Kegsay Date: Mon, 8 Mar 2021 17:45:20 +0000 Subject: [PATCH] device lists: backoff for longer if the wrong error type is returned (#1796) --- keyserver/internal/device_list_update.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keyserver/internal/device_list_update.go b/keyserver/internal/device_list_update.go index c4950a11..7f6a14f4 100644 --- a/keyserver/internal/device_list_update.go +++ b/keyserver/internal/device_list_update.go @@ -347,6 +347,9 @@ func (u *DeviceListUpdater) processServer(serverName gomatrixserverlib.ServerNam } else if fcerr.Blacklisted { waitTime = time.Hour * 8 } + } else { + waitTime = time.Hour + logger.WithError(err).Warn("GetUserDevices returned unknown error type") } hasFailures = true continue