fix(GODT-2822): Handle 429 during message download

When we run into 429 during a message download, do not cancel the whole
batch and switch to a sequential downloader to avoid API overload.
This commit is contained in:
Leander Beernaert
2023-07-26 14:54:58 +02:00
committed by Jakub
parent 4f8ecd598f
commit 5136919c36
5 changed files with 807 additions and 160 deletions

View File

@ -274,6 +274,7 @@ mocks:
mockgen --package mocks github.com/ProtonMail/proton-bridge/v3/internal/updater Downloader,Installer > internal/updater/mocks/mocks.go
mockgen --package mocks github.com/ProtonMail/proton-bridge/v3/internal/telemetry HeartbeatManager > internal/telemetry/mocks/mocks.go
cp internal/telemetry/mocks/mocks.go internal/bridge/mocks/telemetry_mocks.go
mockgen --package mocks github.com/ProtonMail/proton-bridge/v3/internal/user MessageDownloader > internal/user/mocks/mocks.go
lint: gofiles lint-golang lint-license lint-dependencies lint-changelog