mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
fix test + change name
This commit is contained in:
parent
f3ab940776
commit
70ed6ba798
4 changed files with 228 additions and 217 deletions
|
@ -22,7 +22,7 @@ pub struct BatchView {
|
|||
#[serde(with = "time::serde::rfc3339::option", default)]
|
||||
pub finished_at: Option<OffsetDateTime>,
|
||||
#[serde(default = "meilisearch_types::batches::default_stop_reason")]
|
||||
pub stop_reason: String,
|
||||
pub batcher_stopped_because: String,
|
||||
}
|
||||
|
||||
impl BatchView {
|
||||
|
@ -35,7 +35,7 @@ impl BatchView {
|
|||
duration: batch.finished_at.map(|finished_at| finished_at - batch.started_at),
|
||||
started_at: batch.started_at,
|
||||
finished_at: batch.finished_at,
|
||||
stop_reason: batch.stop_reason.clone(),
|
||||
batcher_stopped_because: batch.stop_reason.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue