From 4cdf680a8116d9aa36652d9c1c54caae1b1968a4 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Tue, 24 Aug 2021 11:46:37 +0200 Subject: [PATCH] Make the MaxMemory use the default value when undefined --- meilisearch-http/src/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index 14c9e5a13..f3c077c05 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -35,7 +35,7 @@ pub struct IndexerOpts { /// In case the engine is unable to retrieve the available memory the engine will /// try to use the memory it needs but without real limit, this can lead to /// Out-Of-Memory issues and it is recommended to specify the amount of memory to use. - #[structopt(long)] + #[structopt(long, default_value)] pub max_memory: MaxMemory, /// Size of the linked hash map cache when indexing.