Skip to content

Commit

Permalink
Fix chunk offset (#47)
Browse files Browse the repository at this point in the history
Signed-off-by: declark1 <daniel.clark@ibm.com>
  • Loading branch information
declark1 authored May 24, 2024
1 parent 3e38689 commit f6e8eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ async fn handle_chunk_task(
.results
.into_iter()
.map(|token| Chunk {
offset,
offset: offset + token.start as usize,
text: token.text,
})
.collect::<Vec<_>>();
Expand Down

0 comments on commit f6e8eed

Please sign in to comment.