mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-15 20:48:01 +08:00
fix(sync): Paginate /threads, etc. slightly slower to aleviate backend load
This commit is contained in:
parent
19682d8095
commit
5e360b41cd
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ class NylasSyncWorker
|
|||
if moreToFetch
|
||||
nextParams = _.extend({}, params, {offset: lastReceivedIndex})
|
||||
nextParams.limit = Math.min(Math.round(params.limit * 1.5), MAX_PAGE_SIZE)
|
||||
nextDelay = Math.max(0, 1000 - (Date.now() - requestStartTime))
|
||||
nextDelay = Math.max(0, 1500 - (Date.now() - requestStartTime))
|
||||
setTimeout(( => @fetchCollectionPage(model, nextParams)), nextDelay)
|
||||
|
||||
@updateTransferState(model, {
|
||||
|
|
Loading…
Reference in a new issue