From 9d54a5b33a4b91a874239cefa3a652946159d1af Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 27 Oct 2023 15:37:27 +0200 Subject: [PATCH] chore(sync): bump slow sync version (WPB-5057) (#2174) * Commit with unresolved merge conflicts outside of * chore: bump slow sync version to 6 Develop was bumped to 5, and RC also was bumped to 5. We need to make Develop to 6 so it will trigger an update on the next release from develop. --------- Co-authored-by: Vitor Hugo Schwaab --- .../wire/kalium/logic/sync/slow/SlowSyncManager.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/logic/src/commonMain/kotlin/com/wire/kalium/logic/sync/slow/SlowSyncManager.kt b/logic/src/commonMain/kotlin/com/wire/kalium/logic/sync/slow/SlowSyncManager.kt index 96a6db6ec49..79fffcb023a 100644 --- a/logic/src/commonMain/kotlin/com/wire/kalium/logic/sync/slow/SlowSyncManager.kt +++ b/logic/src/commonMain/kotlin/com/wire/kalium/logic/sync/slow/SlowSyncManager.kt @@ -152,10 +152,17 @@ internal class SlowSyncManager( } private companion object { + /** + * The current version of Slow Sync. + * + * By bumping this version, we can force all clients to perform a new Slow Sync. + * Useful when a new step is added to Slow Sync, or when we fix some bug in Slow Sync, + * and we'd like to get all users to take advantage of the fix. + */ + const val CURRENT_VERSION = 6 + val MIN_RETRY_DELAY = 1.seconds val MAX_RETRY_DELAY = 10.minutes val MIN_TIME_BETWEEN_SLOW_SYNCS = 7.days } } - -const val CURRENT_VERSION = 5 // bump this version to perform slow sync when some new feature flag was added