diff options
author | Till Faelligen <2353100+S7evinK@users.noreply.github.com> | 2022-09-07 12:13:02 +0200 |
---|---|---|
committer | Till Faelligen <2353100+S7evinK@users.noreply.github.com> | 2022-09-07 12:13:02 +0200 |
commit | 4e352390b6827870a2fb19e01c59bd5c267dd7e0 (patch) | |
tree | 9704c07c6a78660a9811aad5f2072d7ae9eda557 | |
parent | 2cfcfddeccb435709824e1beb8d6731eff7c8b86 (diff) |
Re-add waitTime if we're not blacklisted and no RetryAfter was
specified.
-rw-r--r-- | keyserver/internal/device_list_update.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/keyserver/internal/device_list_update.go b/keyserver/internal/device_list_update.go index 8530f907..b70d6a5e 100644 --- a/keyserver/internal/device_list_update.go +++ b/keyserver/internal/device_list_update.go @@ -405,11 +405,12 @@ userLoop: case *fedsenderapi.FederationClientError: if e.RetryAfter > 0 { waitTime = e.RetryAfter - break userLoop } else if e.Blacklisted { waitTime = time.Hour * 8 - break userLoop + } else { + waitTime = time.Hour } + break userLoop case net.Error: // Use the default waitTime, if it's a timeout. // It probably doesn't make sense to try further users. |