mirror of
https://github.com/element-hq/element-android
synced 2024-11-26 19:35:42 +03:00
clean logs
This commit is contained in:
parent
3146f5209b
commit
ca2d36303c
1 changed files with 2 additions and 2 deletions
|
@ -450,13 +450,13 @@ class CommonTestHelper internal constructor(context: Context, val cryptoConfig:
|
|||
var backoffTry = 0
|
||||
val now = System.currentTimeMillis()
|
||||
while (!predicate()) {
|
||||
Timber.w("## VALR Trial nb $backoffTry")
|
||||
Timber.v("## retryWithBackoff Trial nb $backoffTry")
|
||||
withContext(Dispatchers.IO) {
|
||||
delay(backoff[backoffTry.coerceAtMost(backoff.size - 1)])
|
||||
}
|
||||
backoffTry++
|
||||
if (System.currentTimeMillis() - now > timeout) {
|
||||
Timber.w("## VALR Trial fail")
|
||||
Timber.v("## retryWithBackoff Trial fail")
|
||||
onFail?.invoke()
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue