fix(GODT-2822): Sync Cache

When the sync fail, store the previously downloaded data in memory so
that on next retry we don't have to re-download everything.
This commit is contained in:
Leander Beernaert
2023-07-26 17:56:57 +02:00
committed by Jakub
parent 5136919c36
commit f1cf4ee194
6 changed files with 275 additions and 39 deletions

View File

@ -93,6 +93,7 @@ type User struct {
showAllMail uint32
maxSyncMemory uint64
syncCache *SyncDownloadCache
panicHandler async.PanicHandler
@ -171,6 +172,7 @@ func New(
showAllMail: b32(showAllMail),
maxSyncMemory: maxSyncMemory,
syncCache: newSyncDownloadCache(),
panicHandler: crashHandler,