mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
feat: Remove the lifetime restriction for Database Updates
This commit is contained in:
parent
4398b88a3a
commit
1c1f9201b8
3 changed files with 42 additions and 42 deletions
|
@ -61,7 +61,7 @@ fn index(
|
|||
|
||||
while !end_of_file {
|
||||
let tokenizer_builder = DefaultBuilder::new();
|
||||
let mut update = database.update()?;
|
||||
let mut update = database.start_update()?;
|
||||
|
||||
loop {
|
||||
end_of_file = !rdr.read_record(&mut raw_record)?;
|
||||
|
@ -88,7 +88,7 @@ fn index(
|
|||
println!();
|
||||
|
||||
println!("committing update...");
|
||||
update.commit()?;
|
||||
database.commit_update(update)?;
|
||||
}
|
||||
|
||||
Ok(database)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue