Skip to content

Commit 904cbf6

Browse files
authored
Merge pull request #65 from bilinearlabs/fix_block_range
Fix for block range logic
2 parents d30a66b + d29b2ab commit 904cbf6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/event_collector.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,9 @@ impl EventCollector {
221221
chunk_length >> 1
222222
};
223223

224+
// Check for situations in which the hint for the range yields 0 (1-1)
224225
if chunk_length == 0 {
225-
return Err(anyhow::anyhow!(
226-
"Block range reduced to zero, cannot continue the indexing."
227-
));
226+
chunk_length = 1;
228227
}
229228

230229
warn!(

0 commit comments

Comments
 (0)