mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
Warn when giving up on being throttled
This commit is contained in:
parent
01a6e14fb3
commit
998e9cce02
@ -386,6 +386,9 @@ function patchMatrixClientForRetry() {
|
|||||||
// We need to retry.
|
// We need to retry.
|
||||||
reject(err);
|
reject(err);
|
||||||
} else {
|
} else {
|
||||||
|
if (attempt >= MAX_REQUEST_ATTEMPTS) {
|
||||||
|
LogService.warn('Mjolnir.client', `Retried request ${params.method} ${params.uri} ${attempt} times, giving up.`);
|
||||||
|
}
|
||||||
// No need-to-retry error? Lucky us!
|
// No need-to-retry error? Lucky us!
|
||||||
// Note that this may very well be an error, just not
|
// Note that this may very well be an error, just not
|
||||||
// one we need to retry.
|
// one we need to retry.
|
||||||
|
Loading…
Reference in New Issue
Block a user