mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 04:25:31 +08:00
0be186302a
Summary: This removes `refreshHealthOfAccounts`, which I originally found because I was trying to refactor it out of the IdentityStore. We need it gone from the IdentityStore so that store can trigger frequently as things like the usageLimits constantly update on it. This also fixes T7520 where we'd get `ECONNREFUSED 127.0.0.1:2578` on launch unnecessarily. The concept of refreshing the health of accounts by occassionally polling the /accounts endpoint is obsolete. This depends on D3769 which entirely removes the /accounts endpoint from K2. Account health is pushed to us by `Actions.updateAccount` which is fired directly from the main local-sync sync loop. This also removes `refreshAccounts` and `Actions.refreshAllDeltaConnections`. These were fired by the Identity Store whenever it updated. We no longer need the Identity Store to tell us to reset the delta connections with our local-sync accounts. The delta connections will either be reset by our offline notification button, or when adding or removing an account. The Identity Store was a redundant mechanisms Test Plan: Manually verify things work with an existing account. Add a new account and ensure sync starts. Remove an account and ensure it gets cleaned up. Reviewers: halla, khamidou, mark, juan Reviewed By: juan Maniphest Tasks: T7520 Differential Revision: https://phab.nylas.com/D3770 |
||
---|---|---|
.. | ||
account-delta-connection-pool.es6 | ||
account-delta-connection.es6 | ||
contact-rankings-cache.es6 | ||
delta-processor.es6 | ||
delta-streaming-connection.es6 | ||
delta-streaming-in-memory-connection.es6 | ||
main.coffee | ||
refreshing-json-cache.coffee |