mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
rename the Step::name into Step::current_step
This commit is contained in:
parent
d12364c1e0
commit
0d0c18f519
2 changed files with 11 additions and 11 deletions
|
@ -39,7 +39,7 @@ impl Progress {
|
|||
percentage += step.current() as f32 / prev_factors;
|
||||
|
||||
step_view.push(ProgressStepView {
|
||||
name: step.name(),
|
||||
current_step: step.name(),
|
||||
finished: step.current(),
|
||||
total: step.total(),
|
||||
});
|
||||
|
@ -146,7 +146,7 @@ pub struct ProgressView {
|
|||
#[derive(Debug, Serialize, Clone)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct ProgressStepView {
|
||||
pub name: Cow<'static, str>,
|
||||
pub current_step: Cow<'static, str>,
|
||||
pub finished: u32,
|
||||
pub total: u32,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue