refactor: use copy_limit if greater than 0
This commit is contained in:
parent
5291fd4f10
commit
3fc381c050
@ -36,10 +36,10 @@ impl MigrationTrait for Migration {
|
|||||||
.await?
|
.await?
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.try_get_by_index::<i64>(0)?;
|
.try_get_by_index::<i64>(0)?;
|
||||||
let copy_limit = if copy_limit == 0 {
|
let copy_limit = if copy_limit > 0 {
|
||||||
total_num
|
|
||||||
} else {
|
|
||||||
copy_limit
|
copy_limit
|
||||||
|
} else {
|
||||||
|
total_num
|
||||||
};
|
};
|
||||||
println!(
|
println!(
|
||||||
"Copying {} out of {} entries in antenna_note.",
|
"Copying {} out of {} entries in antenna_note.",
|
||||||
|
Loading…
Reference in New Issue
Block a user