mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-30 23:27:36 +01:00
apply review comment
This commit is contained in:
parent
e0f0da57e2
commit
ef47a0d820
@ -245,7 +245,7 @@ impl BatchQueue {
|
|||||||
wtxn,
|
wtxn,
|
||||||
self.enqueued_at,
|
self.enqueued_at,
|
||||||
old_batch.started_at,
|
old_batch.started_at,
|
||||||
if old_batch.stats.total_nb_tasks >= 2 { 2 } else { 1 },
|
old_batch.stats.total_nb_tasks.clamp(1, 2) as usize,
|
||||||
old_batch.uid,
|
old_batch.uid,
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
@ -538,7 +538,7 @@ impl IndexScheduler {
|
|||||||
wtxn,
|
wtxn,
|
||||||
self.queue.batches.enqueued_at,
|
self.queue.batches.enqueued_at,
|
||||||
batch.started_at,
|
batch.started_at,
|
||||||
if batch.stats.total_nb_tasks >= 2 { 2 } else { 1 },
|
batch.stats.total_nb_tasks.clamp(1, 2) as usize,
|
||||||
batch_id,
|
batch_id,
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user