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

Commit 8bbcc46

Browse files
authored
Update BulkService.php
1 parent c465e60 commit 8bbcc46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/BulkService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function chunkIterator(int $batchSize, string $key): \Generator
2121
}
2222

2323
do {
24-
$bulk = Redis::lrange($key, 0, $batchSize);
24+
$bulk = Redis::lrange($key, 0, \max($batchSize - 1, 0));
2525
$count = \count($bulk);
2626
if ($count) {
2727
yield $bulk;

0 commit comments

Comments
 (0)