mozilla-mobile / android-components

⚠️ This project moved to a new repository. It is now developed and maintained at: https://github.com/mozilla-mobile/firefox-android

Home Page:https://github.com/mozilla-mobile/firefox-android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sync debouncing should respect SyncEngines

MatthewTighe opened this issue · comments

Now that syncNow supports specifying sync engines, the debounce mechanism in the SyncManager should only debounce requests from the same engine. For example:

  • Tabs sync is initiated
  • Full sync is initiated with debounce = true

The full sync will now be debounced, even if the intention was to only debounce if a full sync had occured within the time out.

Each engine should be separately tracked so that it can be separately debounced, and full syncs should only be debounced if every supported engine has been debounced within the timer.

┆Issue is synchronized with this Jira Task