We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6131833 commit 0e4c9ceCopy full SHA for 0e4c9ce
1 file changed
app/src/main/java/chat/rocket/android/util/IO.kt
@@ -9,7 +9,7 @@ import timber.log.Timber
9
import kotlin.coroutines.experimental.coroutineContext
10
11
const val DEFAULT_RETRY = 3
12
-private const val DEFAULT_DB_RETRY = 5
+private const val DEFAULT_DB_RETRY = 15
13
14
suspend fun <T> retryIO(
15
description: String = "<missing description>",
@@ -42,7 +42,7 @@ suspend fun <T> retryDB(
42
43
times: Int = DEFAULT_DB_RETRY,
44
initialDelay: Long = 100, // 0.1 second
45
- maxDelay: Long = 500, // 0.5 second
+ maxDelay: Long = 1500, // 1.5 second
46
factor: Double = 1.2,
47
block: suspend () -> T): T
48
{
0 commit comments