Skip to content

Commit

Permalink
Limit chunk_size range
Browse files Browse the repository at this point in the history
  • Loading branch information
birchkwok committed Sep 25, 2024
1 parent 795b304 commit 91bbefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lynse/api/native_api/low_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(
logger.warning('The recommended chunk size is between 10,000 and 500,000.')

# In order to have enough data to index the segment
raise_if(ValueError, chunk_size <= 1000, 'chunk_size must greater than 1000.')
raise_if(ValueError, chunk_size < 1000, 'chunk_size must greater than or equal to 1000.')

self._database_path = database_path
self._database_name = Path(database_path).parent.name
Expand Down

0 comments on commit 91bbefe

Please sign in to comment.