From b6218d086d46039204d1bb8c717b7483b3a54f1b Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 2 Dec 2021 13:55:26 +0100 Subject: [PATCH] Rename const for clarity --- .../android/sdk/internal/session/sync/job/SyncWorker.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncWorker.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncWorker.kt index cf36af7150..a7d0f02720 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncWorker.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/job/SyncWorker.kt @@ -36,7 +36,7 @@ import java.util.concurrent.TimeUnit import javax.inject.Inject private const val DEFAULT_LONG_POOL_TIMEOUT_SECONDS = 6L -private const val DEFAULT_DELAY_TIMEOUT_MILLIS = 30_000L +private const val DEFAULT_DELAY_MILLIS = 30_000L /** * Possible previous worker: None @@ -52,7 +52,7 @@ internal class SyncWorker(context: Context, // In seconds val timeout: Long = DEFAULT_LONG_POOL_TIMEOUT_SECONDS, // In milliseconds - val delay: Long = DEFAULT_DELAY_TIMEOUT_MILLIS, + val delay: Long = DEFAULT_DELAY_MILLIS, val periodic: Boolean = false, val forceImmediate: Boolean = false, override val lastFailureMessage: String? = null