From 6d28ece616abe318ec2bfee5f23069d96d62b4c3 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 29 Aug 2018 17:33:36 +0200 Subject: [PATCH] Download more, sleep less. #1607 --- app/Support/Import/Routine/Bunq/StageImportDataHandler.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/Support/Import/Routine/Bunq/StageImportDataHandler.php b/app/Support/Import/Routine/Bunq/StageImportDataHandler.php index 457bcb8014..6e26db17ef 100644 --- a/app/Support/Import/Routine/Bunq/StageImportDataHandler.php +++ b/app/Support/Import/Routine/Bunq/StageImportDataHandler.php @@ -319,7 +319,6 @@ class StageImportDataHandler $return = $this->goForwardInTime($bunqAccountId, $localAccount); // work my way forward. } - sleep(1); return $return; } @@ -341,12 +340,11 @@ class StageImportDataHandler $veryFirstTransaction = null; // loop die loop! - sleep(1); while ($hasMoreTransactions && $count < 50) { Log::debug(sprintf('Now in loop #%d', $count)); /** @var Payment $paymentRequest */ $paymentRequest = app(Payment::class); - $response = $paymentRequest->listing($bunqAccountId, ['count' => 20, 'older_id' => $olderId]); + $response = $paymentRequest->listing($bunqAccountId, ['count' => 100, 'older_id' => $olderId]); $pagination = $response->getPagination(); /* * If pagination is not null, we can go back even further. @@ -410,12 +408,11 @@ class StageImportDataHandler $newerId = (int)$transactionPref->data; // loop die loop! - sleep(1); while ($hasMoreTransactions && $count < 50) { Log::debug(sprintf('Now in loop #%d', $count)); /** @var Payment $paymentRequest */ $paymentRequest = app(Payment::class); - $params = ['count' => 20, 'newer_id' => $newerId]; + $params = ['count' => 100, 'newer_id' => $newerId]; $response = $paymentRequest->listing($bunqAccountId, $params); $pagination = $response->getPagination(); Log::debug('Submit payment request with params', $params);