Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit 0e4c9ce

Browse files
committed
Increase db retries
1 parent 6131833 commit 0e4c9ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • app/src/main/java/chat/rocket/android/util

app/src/main/java/chat/rocket/android/util/IO.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import timber.log.Timber
99
import kotlin.coroutines.experimental.coroutineContext
1010

1111
const val DEFAULT_RETRY = 3
12-
private const val DEFAULT_DB_RETRY = 5
12+
private const val DEFAULT_DB_RETRY = 15
1313

1414
suspend fun <T> retryIO(
1515
description: String = "<missing description>",
@@ -42,7 +42,7 @@ suspend fun <T> retryDB(
4242
description: String = "<missing description>",
4343
times: Int = DEFAULT_DB_RETRY,
4444
initialDelay: Long = 100, // 0.1 second
45-
maxDelay: Long = 500, // 0.5 second
45+
maxDelay: Long = 1500, // 1.5 second
4646
factor: Double = 1.2,
4747
block: suspend () -> T): T
4848
{

0 commit comments

Comments
 (0)