Ensure http 429 are retried 3 times before failing.
This commit is contained in:
parent
f4a9900a0d
commit
b87c847855
1 changed files with 2 additions and 1 deletions
|
|
@ -161,7 +161,8 @@ class RustMatrixClientFactory(
|
|||
.requestConfig(
|
||||
RequestConfig(
|
||||
timeout = 30_000uL,
|
||||
retryLimit = 0u,
|
||||
// retryLimit must be non-zero for the SDK to retry API calls when rate-limited.
|
||||
retryLimit = 3u,
|
||||
// Use default values for the rest
|
||||
maxConcurrentRequests = null,
|
||||
maxRetryTime = null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue