mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 18:44:01 +08:00
Summary: This patch changes the sync worker to back off exponentially when there is an issue syncing an account. This has two goals: - first, it's a bit dangerous to retry immediately. We don't want hundreds of thousands of machines trying to refresh tokens unsuccessfully because our service is struggling. - second, it's nicer on the CPU to wait a bit between retries. Currently, we sleep for at most 2 minutes, with some random jitter added. Test Plan: Tested manually, stared at the code a long time. Reviewers: evan, juan Reviewed By: evan, juan Differential Revision: https://phab.nylas.com/D3684 |
||
---|---|---|
.. | ||
src | ||
index.js | ||
package.json |