mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
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:
@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user