mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Accept total batch size in human size
This commit is contained in:
parent
7df5715d39
commit
d3e4b2dfe7
3 changed files with 6 additions and 5 deletions
|
@ -444,7 +444,7 @@ pub struct Opt {
|
|||
/// see: <https://github.com/orgs/meilisearch/discussions/801>
|
||||
#[clap(long, env = MEILI_EXPERIMENTAL_LIMIT_BATCHED_TASKS_TOTAL_SIZE, default_value_t = default_limit_batched_tasks_total_size())]
|
||||
#[serde(default = "default_limit_batched_tasks_total_size")]
|
||||
pub experimental_limit_batched_tasks_total_size: u64,
|
||||
pub experimental_limit_batched_tasks_total_size: Byte,
|
||||
|
||||
#[serde(flatten)]
|
||||
#[clap(flatten)]
|
||||
|
@ -944,8 +944,8 @@ fn default_limit_batched_tasks() -> usize {
|
|||
usize::MAX
|
||||
}
|
||||
|
||||
fn default_limit_batched_tasks_total_size() -> u64 {
|
||||
u64::MAX
|
||||
fn default_limit_batched_tasks_total_size() -> Byte {
|
||||
Byte::from_u64(u64::MAX)
|
||||
}
|
||||
|
||||
fn default_snapshot_dir() -> PathBuf {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue