mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-26 16:21:55 -06:00
Raise waitTime for network related issues (#2192)
This commit is contained in:
parent
934491eda5
commit
89b7519089
|
@ -367,6 +367,9 @@ func (u *DeviceListUpdater) processServer(serverName gomatrixserverlib.ServerNam
|
||||||
waitTime = fcerr.RetryAfter
|
waitTime = fcerr.RetryAfter
|
||||||
} else if fcerr.Blacklisted {
|
} else if fcerr.Blacklisted {
|
||||||
waitTime = time.Hour * 8
|
waitTime = time.Hour * 8
|
||||||
|
} else {
|
||||||
|
// For all other errors (DNS resolution, network etc.) wait 1 hour.
|
||||||
|
waitTime = time.Hour
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
waitTime = time.Hour
|
waitTime = time.Hour
|
||||||
|
|
Loading…
Reference in a new issue