Skip to content

Commit 6ceef3e

Browse files
authored
update (#640)
1 parent 58f3718 commit 6ceef3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/litdata/processing/data_processor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,7 @@ def _loop(self) -> None:
619619
continue
620620

621621
if self.using_queue_optimize:
622-
# using random index number, just to satisfy the default combined_data structure.
623-
index = -5 # not using -1, as items will be of length 0, so last_index (0-1 = -1) will become true.
622+
index = None
624623
item = combined_data
625624
paths = None
626625
else:

0 commit comments

Comments
 (0)