mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
cargo fmt
This commit is contained in:
parent
a2d0c73b41
commit
492fc086f0
2 changed files with 8 additions and 5 deletions
|
@ -924,7 +924,8 @@ impl IndexScheduler {
|
|||
};
|
||||
|
||||
// the index operation can take a long time, so save this handle to make it available tothe search for the duration of the tick
|
||||
*self.currently_updating_index.write().unwrap() = Some((index_uid.clone(), index.clone()));
|
||||
*self.currently_updating_index.write().unwrap() =
|
||||
Some((index_uid.clone(), index.clone()));
|
||||
|
||||
let mut index_wtxn = index.write_txn()?;
|
||||
let tasks = self.apply_index_operation(&mut index_wtxn, &index, op)?;
|
||||
|
@ -963,8 +964,8 @@ impl IndexScheduler {
|
|||
let rtxn = self.env.read_txn()?;
|
||||
let index = self.index_mapper.index(&rtxn, &index_uid)?;
|
||||
// the index update can take a long time, so save this handle to make it available tothe search for the duration of the tick
|
||||
*self.currently_updating_index.write().unwrap() = Some((index_uid.clone(), index.clone()));
|
||||
|
||||
*self.currently_updating_index.write().unwrap() =
|
||||
Some((index_uid.clone(), index.clone()));
|
||||
|
||||
if let Some(primary_key) = primary_key.clone() {
|
||||
let mut index_wtxn = index.write_txn()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue