mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-28 09:11:00 +00:00
apply review comment
This commit is contained in:
@ -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,
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user