mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-26 08:11:55 -06:00
Re-add waitTime if we're not blacklisted and no RetryAfter was
specified.
This commit is contained in:
parent
2cfcfddecc
commit
4e352390b6
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue