Add storage service optimization to avoid manifest reads.

This commit is contained in:
Greyson Parrelli
2025-04-14 12:01:37 -04:00
committed by Cody Henthorne
parent fe70637140
commit f68bb2dc88
15 changed files with 57 additions and 32 deletions

View File

@@ -874,7 +874,7 @@ class RegistrationViewModel : ViewModel() {
stopwatch.split("account-restore")
AppDependencies.jobManager
.startChain(StorageSyncJob())
.startChain(StorageSyncJob.forRemoteChange())
.then(ReclaimUsernameAndLinkJob())
.enqueueAndBlockUntilCompletion(TimeUnit.SECONDS.toMillis(10))
stopwatch.split("storage-sync")

View File

@@ -46,7 +46,7 @@ public final class RegistrationUtil {
}
AppDependencies.getJobManager().startChain(new RefreshAttributesJob())
.then(new StorageSyncJob())
.then(StorageSyncJob.forRemoteChange())
.then(new DirectoryRefreshJob(false))
.enqueue();