device lists: backoff for longer if the wrong error type is returned (#1796)

This commit is contained in:
Kegsay 2021-03-08 17:45:20 +00:00 committed by GitHub
parent e865a1507a
commit 77fb981da5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -347,6 +347,9 @@ func (u *DeviceListUpdater) processServer(serverName gomatrixserverlib.ServerNam
} else if fcerr.Blacklisted { } else if fcerr.Blacklisted {
waitTime = time.Hour * 8 waitTime = time.Hour * 8
} }
} else {
waitTime = time.Hour
logger.WithError(err).Warn("GetUserDevices returned unknown error type")
} }
hasFailures = true hasFailures = true
continue continue