From 5e360b41cdbb74be1f450655982e368f80647bdc Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Wed, 9 Mar 2016 15:15:29 -0800 Subject: [PATCH] fix(sync): Paginate /threads, etc. slightly slower to aleviate backend load --- internal_packages/worker-sync/lib/nylas-sync-worker.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_packages/worker-sync/lib/nylas-sync-worker.coffee b/internal_packages/worker-sync/lib/nylas-sync-worker.coffee index c9332af33..bcbbf87e9 100644 --- a/internal_packages/worker-sync/lib/nylas-sync-worker.coffee +++ b/internal_packages/worker-sync/lib/nylas-sync-worker.coffee @@ -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, {