mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-12 23:01:40 +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:
|
case *fedsenderapi.FederationClientError:
|
||||||
if e.RetryAfter > 0 {
|
if e.RetryAfter > 0 {
|
||||||
waitTime = e.RetryAfter
|
waitTime = e.RetryAfter
|
||||||
break userLoop
|
|
||||||
} else if e.Blacklisted {
|
} else if e.Blacklisted {
|
||||||
waitTime = time.Hour * 8
|
waitTime = time.Hour * 8
|
||||||
break userLoop
|
} else {
|
||||||
|
waitTime = time.Hour
|
||||||
}
|
}
|
||||||
|
break userLoop
|
||||||
case net.Error:
|
case net.Error:
|
||||||
// Use the default waitTime, if it's a timeout.
|
// Use the default waitTime, if it's a timeout.
|
||||||
// It probably doesn't make sense to try further users.
|
// It probably doesn't make sense to try further users.
|
||||||
|
Loading…
Reference in New Issue
Block a user