Re-add waitTime if we're not blacklisted and no RetryAfter was

specified.
This commit is contained in:
Till Faelligen 2022-09-07 12:13:02 +02:00
parent 2cfcfddecc
commit 4e352390b6
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -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.