mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 08:41:00 +00:00
make sure the batches we snapshots actually all contains an enqueued_at
This commit is contained in:
@ -345,10 +345,10 @@ pub fn snapshot_batch(batch: &Batch) -> String {
|
||||
if let Some(finished_at) = finished_at {
|
||||
assert!(finished_at > started_at);
|
||||
}
|
||||
if let Some(BatchEnqueuedAt { earliest, oldest }) = enqueued_at {
|
||||
assert!(started_at > earliest);
|
||||
assert!(earliest >= oldest);
|
||||
}
|
||||
let BatchEnqueuedAt { earliest, oldest } = enqueued_at.unwrap();
|
||||
assert!(*started_at > earliest);
|
||||
assert!(earliest >= oldest);
|
||||
|
||||
snap.push('{');
|
||||
snap.push_str(&format!("uid: {uid}, "));
|
||||
snap.push_str(&format!("details: {}, ", serde_json::to_string(details).unwrap()));
|
||||
|
Reference in New Issue
Block a user