Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Update BulkService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Jul 13, 2020
1 parent c465e60 commit 8bbcc46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/BulkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function chunkIterator(int $batchSize, string $key): \Generator
}

do {
$bulk = Redis::lrange($key, 0, $batchSize);
$bulk = Redis::lrange($key, 0, \max($batchSize - 1, 0));
$count = \count($bulk);
if ($count) {
yield $bulk;
Expand Down

0 comments on commit 8bbcc46

Please sign in to comment.