mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-29 07:01:32 +00: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 New Issue
Block a user